Гайз хэлп, где я тупонул?)
package com.javarush.task.task04.task0417;
/*
Существует ли пара?
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Solution {
private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws Exception {
int a = Integer.parseInt(br.readLine());
int b = Integer.parseInt(br.readLine());
int c = Integer.parseInt(br.readLine());
havePair(a, b, c);
}
private static void havePair(int a, int b, int c) {
if ((a == b) && (b == c)) {
System.out.println(a + " " + b + " " + c);
} else if (a == b) {
System.out.println(a + " " + b);
} else if (b == c) {
System.out.println(b + " " + c);
} else if (c == a) {
System.out.println(c + " " + a);
}
}
}