Find largest of 3 numbers

import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc=new Scanner(System.in);
int a,b,c;
a=sc.nextInt();
b=sc.nextInt();
c=sc.nextInt();
if(a>b && a>c){
System.out.println(a);
}
else if(b>a && b>c){
System.out.println(b);
}
else{
System.out.printlnĀ©;
}
}
}

what is wrong with my code
just give me some hint

can any one pls reply

@niharikareddykeesara_139be65b4266e2f2 Your code is giving wrong answer for duplicate values in an array. For eg :
5 5 1
should give answer = 5
but your code is giving = 1.
So debug your code for these kind of inputs.

I hope Iā€™ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.