What\'s the simplest, most standard, and/or most efficient way to split a List into two sub-Lists in Java? It\'s OK to mutate the original List, so no copying should be nece
You can use common utilities, like Guava library:
import com.google.common.collect.Lists;
import com.google.common.math.IntMath;
import java.math.RoundingMode;
int partitionSize = IntMath.divide(list.size(), 2, RoundingMode.UP);
List> partitions = Lists.partition(list, partitionSize);
The result is a list of two lists - not quite by your spec, but you can easily adapt, if needed.