public class ForLoop {
public static void main(String[] args){
String writtenStuff =
"someone was here!" +
"here i am!";
int numP = 0;
int length = yazi.length();
for (int i = 0; i < length; i++){
if (yazi.charAt(i) != 's')
continue;
++numP;
}//for end
System.out.println("the total number of the letters in writtenStuff is " + i +
"\n,but the number of letters without b is " + numP);
}//end method
}//end class
in the line starting with "system.out..", an error occurs. It says that i cannto be resolved to a variable. I did not understand why i is not considered a value. Is this a scope issue? if so, can you explain the reason behind this error ?