forked from PacktPublishing/Java-Coding-Problems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
17 lines (12 loc) · 651 Bytes
/
Copy pathMain.java
File metadata and controls
17 lines (12 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package modern.challenge;
public class Main {
public static void main(String[] args) {
int resultSigned = Integer.compare(Integer.MIN_VALUE, Integer.MAX_VALUE);
int resultUnsigned = Integer.compareUnsigned(Integer.MIN_VALUE, Integer.MAX_VALUE);
System.out.println("Signed ints: " + Integer.MIN_VALUE + ", " + Integer.MAX_VALUE);
System.out.println("-----------------------------------------------");
System.out.println("Result of comparing signed: " + resultSigned);
System.out.println("Result of comparing unsigned: " + resultUnsigned);
}
}
;