If smb. could help and explain why one of reqiarment doesn't pass(if two number are equal, display them) , I would be very grateful, part of my code: else if (number1 == number2 && number1 != number3) System.out.println(number1 + " " + number2); else if (number2 == number3 && number1 != number3) System.out.println(number2 + " " + number3);