expecting EOF found 'for'
in
Programming Questions
•
6 months ago
Hi,
I am absolutely new to Processing.
I have the following code and it is giving me the error on the line of the FOR loop.
Any suggestions will be greatly appreciated.
Also is it possible in Processing to loop through the string in the way I am trying to?
Thanks.
-
class Pair {String letter;int count;Pair (String l, int n) {letter = l;count = n;}void Increment(){n += 1;}void Display(){println(letter + " " + count);}}
String alphabet = "ABCDEFGHIJKLMNOPQRSTUWXYZ";for (int i = 0; i < alphabet.length; i = i+1) {println(alphabet[i]);}
1