How can I modify this part of my code so that "token" would be the previous number the program input from the text file and the current number? For example, there is 2 number inside the text file, the 1st = 2 and the 2nd =4 , how can I make "token" be the sum of these two? Thanks
while(inFile.hasNextInt()) { token =+ inFile.nextInt(); System.out.println(token); winCounter++; }