import java.util.ArrayList; import java.util.List; public class MergeSort { public MergeSort() { } public List mergeSort(List list) { if(list!=null){ List left = new ArrayList(); List right = new ArrayList(); List result = new ArrayList(); if(list.size()<=1) return list; int middle = list.size()/2; for(int i=0;i mergeSort(List left, List right) { List result = new ArrayList(); int counterLeft = 0; int counterRight = 0; while(counterLeft