so basically user enters a sequence from an scanner input. 12, 3, 4, etc. It can be of any length long and it has to be integers. I want to convert the
12, 3, 4
Line by line
int [] v = Stream.of(line.split(",\\s+")) .mapToInt(Integer::parseInt) .toArray();