Search:

Type: Posts; User: winsticknova

Search: Search took 0.11 seconds.

  1. Re: Creating a scanner and putting input into arrays.

    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?
  2. Re: Creating a scanner and putting input into arrays.

    for one, my compiler says "error: no suitable method found for add(String)" for intList.add(input); and doubleList.add(input);
  3. Creating a scanner and putting input into arrays.

    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...
Results 1 to 3 of 3