I want to take a character using the scanner class and then i want to find and count it in certain file

i did
like this

char countingChar ;
countingChar= scan.nextChar();

but my compiler show error at this line

then i find this blog on the sun

so now if i still want to take a char value from the user what can i do .....

Uhm, use next() and then toCharArray() and access the chars that way.