For this Question: Given three integers your task is to calculate the maximum integer among the given integers.The input contains three integers a, b, and c

<b>Constraint:</b>
1<=integers<=10000Print the maximum integer among the given integers.Sample Input:-
2 6 3

Sample Output:-
6

Sample Input:-
48 100 100

Sample Output:
100, I have written this Solution Code: import java.util.Scanner;
class Main {
   public static void main (String[] args)
   {
       //Capture the user's input
       Scanner scanner = new Scanner(System.in);
       //Storing the captured value in a variable
       int p = scanner.nextInt();
       int tm = scanner.nextInt();
       int r = scanner.nextInt();
       
       int intrst = MaxInteger(p,tm,r); 
       System.out.println(intrst);
   
}


static int  MaxInteger(int a ,int b, int c){
if(a>=b && a>=c){return a;}
if(b>=a && b>=c){return b;}
return c;}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?