No it doesn't. String has a toString() method (read the Java SE API doc at Object.toString() and String.toString()). Your code says:


System.out.println(it);

What is 'it'? It's not a String!...