I want to write a code that will allow the user to pick how many scanners he wants to use. First I created a simple scanner and assigned an int to it
Scanner scanner = new Scanner(System.in);
int input = scanner.nextInt();
now the user will enter ANY integer (ex. 7
). Then I want the program to create an array of scanners that will then allow a number of lines of input (in this case 7). Any help is appreciated!
List
. Not sure why you would want to do this, though.