текст ошибки com/javarush/task/pro/task03/task0305/Solution.java:26: error: 'else' without 'if'
else if (b == c){
у меня if 17 строки закрывает else 22 строки. А if 16 строки закрывает else 26. Но код не компилируется.
package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
if (a == b) {
if (a ==c){
System.out.println(a);
System.out.println(b);
System.out.println(c);
}
else {
System.out.println(a);
System.out.println(b);
}
else if (b == c){
System.out.println(b);
System.out.println(c);
}
}
}