The java-output doesn't give the right result?

Printable View