forked from RameshMF/Java-Coding-Problems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
22 lines (14 loc) · 678 Bytes
/
Copy pathMain.java
File metadata and controls
22 lines (14 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package modern.challenge;
public class Main {
public static void main(String[] args) {
long result = Integer.toUnsignedLong(Integer.MIN_VALUE);
System.out.println("Integer.MIN_VALUE: " + Integer.MIN_VALUE);
System.out.println("Result: " + result);
System.out.println();
int result1 = Short.toUnsignedInt(Short.MIN_VALUE);
int result2 = Short.toUnsignedInt(Short.MAX_VALUE);
System.out.println("Short.MIN_VALUE: " + Short.MIN_VALUE + " Short.MAX_VALUE: " + Short.MAX_VALUE);
System.out.println("Result 1: " + result1);
System.out.println("Result 2: " + result2);
}
}