Please share what else needs to be changed in the following code:
package com.codegym.task.task04.task0424;
/*
Three numbers
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int n1 = sc.nextInt();
int n2 = sc.nextInt();
int n3 = sc.nextInt();
int [] arrn = {n1,n2,n3};
if (arrn[0] == arrn[1]) {
System.out.println(2);
} else if (arrn[0]== arrn[2]) {
System.out.println(1);
} else if (arrn[1]== arrn[2]) {
System.out.println(0);
} else {}
}
}