SyntaxFix
Write A Post
Hire A Developer
Questions
System.out.println(A.compareTo(B)>0?"Yes":"No")
if the value of A>B it will return "Yes" or "No".