Код вроде правильный, однако выдает ошибку
package com.javarush.task.task04.task0417;
/*
Существует ли пара?
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if (a == b && b ==c ) {
System.out.println("a" + " " + "b" + " " + "c"); }
if else (a == b) {
System.out.println("a" + " " + "b"); }
if else (b == c) {
System.out.println("b" + " " + "c"); }
else (a == c) {
System.out.println("a" + " " + "c"); }
}
}