In Java, I\'m getting this Exception:
Exception in thread \"main\" java.util.NoSuchElementException at java.util.Scanner.throwFor(Unknown Source) at
Don't call next() so much times! It actually go to the next element when you call it. If you need to use it more than once, put it inside a variable and use it.
String next = file.next(); for(int counter = 0 ; counter < next.length(); counter ++) { System.out.println(next.charAt(counter)); }