ArrayList<Double> speedInfo = new ArrayList<>();
do {
speedInfo.add(input.nextDouble());
} while (speedInfo.size() != 2);
ArrayList<Integer> LIST = new ArrayList<Integer>();
while (sc.hasNextInt())
{
int i = sc.nextInt();
LIST.add(i);
}