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);
}
number_list = []
n = int(input("Enter the list size "))
print("
")
for i in range(0, n):
print("Enter number at index", i, )
item = int(input())
number_list.append(item)
print("User list is ", number_list)