'.class' expected Error
I get this error when i compile tht following code
Error:
'.class' expected
int j = 0;
^
not a statement
int j = 0;
^
Code:
public static void main(String[] args) {
int counter = 0;
l1:
for (int i=0; i<10; i++) {
l2:
int j = 0;
while (j++ < 10) {
if (j > i) break l2;
if (j == i) {
counter++;
continue l1;
}
}
}
System.out.println(counter);
}
Any ideas

