public class CompareSignedUnsigned {
public static void main(String args[]) {
int a = Integer.MIN_VALUE;
int b = Integer.MAX_VALUE;
int signedNum = Integer.compare(a, b);
System.out.println("Result of comparing signed number" + signedNum);
int unsignedNum = Integer.compareUnsigned(a, b);
System.out.println("Result of comparing unsigned number" + unsignedNum);
}
}