Test.java 6 Condition 'i == j' is always true