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
That assumes token is a number. That is a very poor name for a number; I would think it is a String (still a poor name if you are applying += to it). If it is a String, the compiler will not permit =+ to be applied to it.
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad: