oh. I thought I checked if it was an int with "else if(scanner.hasNextInt())" how would I use my scanner to determine the type of the user input?
Type: Posts; User: winsticknova
oh. I thought I checked if it was an int with "else if(scanner.hasNextInt())" how would I use my scanner to determine the type of the user input?
for one, my compiler says "error: no suitable method found for add(String)" for intList.add(input); and doubleList.add(input);
I'm trying to read user input from the terminal and separate the input into separate arrays depending on if the user input is an integer, scanner, or a string. The terminal should keep asking the...