I am seriously confused, because I don't see how any numbers could be displayed if no numbers are equal. Please 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 {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
String p = reader.readLine();
String v = reader.readLine();
int firstLine = Integer.parseInt(s);
int secondLine = Integer.parseInt(p);
int thirdLine = Integer.parseInt(v);
if (firstLine == secondLine && secondLine == thirdLine)
System.out.println(firstLine + " " + secondLine + " " + thirdLine);
else if (firstLine != secondLine && secondLine == thirdLine)
System.out.println(secondLine + " " + thirdLine);
else if (firstLine == secondLine && secondLine!= thirdLine)
System.out.println(firstLine + " " + secondLine);
else if (firstLine == thirdLine && firstLine != secondLine)
System.out.println(firstLine + " " + thirdLine);
else if (firstLine != secondLine && secondLine != thirdLine && firstLine != thirdLine)
System.out.println();
//write your code here
}
}