If I am scanning from a text
Scanner s= new Scanner("texto.txt");
// I want to compare the next char from the line with a <
// like this:
if(s.nextChar().equals("<")){
.....
I know that s.nextChar()
does not exist but there is any similar thing to use in this case?