OMG i'm so sorry i must of made a mistake when i was testing it. everything works fine thanks for all your help.
Type: Posts; User: thatguy
OMG i'm so sorry i must of made a mistake when i was testing it. everything works fine thanks for all your help.
API parseInt: "Parses the string argument as a signed decimal integer"
I thought Integer.parseInt(candyNum[i]) would change the string to a int?
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...
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...