Hi guys i made it this way my program is working corectly but it didn't pass i did not read about method how to do it in conditions what is wrong with this?
Thanks for help
package com.codegym.task.task04.task0417;
/*
Do we have a pair?
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
String paira = br.readLine();
int a = Integer.parseInt(paira);
String pairb = br.readLine();
int b = Integer.parseInt(pairb);
String pairc = br.readLine();
int c = Integer.parseInt(pairc);
if (a == b && a == c && b == c){
System.out.println(a + " " + b + " " +c);
}else if (a != b && a != c && b != c){
System.out.println();
}else if (a != b && a == c && b != c){
System.out.println(a + " " + c);
}else if (a != b && a != c && b == c){
System.out.println(b + " " + c);
}else if (a == b && a != c && b != c){
System.out.println(a + " " + b);
}
}
}