彼女のエラーは何ですか:(
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
public class Checker {
Scanner Scan = new Scanner(System.in);
int x;
public Checker()
{
System.out.print("Enter The Word ; ");
String Word = Scan.nextLine();
System.out.print("Enter The character : ");
char Char = Scan.next().charAt(0);
}
for( int i = 0 ; i < Word.lenght ; i++ )
{
char Ch = Word.charAt(i);
if(Ch == Char )
x++ ;
}
System.out.println(x);
}