For this Question: Given four numbers A, B, C, D. Find the maximum number of pairs that can be made.
(each pair consist of two distinct numbers). Each number can be used only once.Four integers are given as input. a, b, c, d

<b>Constraints</b>
1 &le; a, b, c, d &le; 10<sup>4</sup>Output should print the maximum number of pairs.Sample Input:
2 3 5 5
Sample Output:
2

Explanation:
Two pairs can be formed. 
(2, 5) and (3, 5) are two pairs, I have written this Solution Code: import java.util.Scanner;

public class Main
{
    public static void main(String args[]) {
        
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int c = in.nextInt();
        int d = in.nextInt();
        int s=2;
        if(a==b && b==c && c==d)
        s=0;
        else if(a==b && b==c)
        s=1;
        else if(b==c && c==d)
        s=1;
        else if(a==c && c==d)
        s=1;
        
        System.out.print(s);
        
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?