Друзья в чем причина, вроде все работает, но не получается пройти проверку на вывод двух равных чисел?
package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
private static boolean one ;
private static boolean two ;
private static boolean three;
private static boolean four;
public static void main(String[] args) {
Scanner sc = new Scanner (System.in) ;
int a = sc.nextInt() ;
int b = sc.nextInt();
int c = sc.nextInt();
one = (a==b && a>c );
two = (a==c && a>b);
three= (b==c && b>a);
four = (a==b && b==c) ;
if (one)
System.out.println(a+" "+b);
if (two)
System.out.println(a+" "+c);
if (three)
System.out.println(b+" "+c);
if (four)
System.out.println (a+" "+b+" "+c);
}
}