Search:

Type: Posts; User: thatguy

Search: Search took 0.55 seconds.

  1. Replies
    9
    Views
    1,265

    Re: question about getting data from the console

    OMG i'm so sorry i must of made a mistake when i was testing it. everything works fine thanks for all your help.
  2. Replies
    9
    Views
    1,265

    Re: question about getting data from the console

    API parseInt: "Parses the string argument as a signed decimal integer"
  3. Replies
    9
    Views
    1,265

    Re: question about getting data from the console

    I thought Integer.parseInt(candyNum[i]) would change the string to a int?
  4. Replies
    9
    Views
    1,265

    Re: question about getting data from the console

    Thanks for the idea. But now i cant figure out why the numbers are still strings. any ideas




    Scanner userInput = new Scanner(System.in);
    ArrayList<Integer> candy = new...
  5. Replies
    9
    Views
    1,265

    question about getting data from the console

    I'm trying to fill an arraylist with number but I don't want the user to have to press enter after each number. I would like it if they could put all the numbers on one line separated by white space...
Results 1 to 5 of 5