-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHello.java
More file actions
35 lines (28 loc) · 803 Bytes
/
Hello.java
File metadata and controls
35 lines (28 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
public class Hello{
public static void main(String[] args)
{
System.out.println("Hello World!");
double num = 1.0/0;
System.out.println(num);
int millSeconds = 365 * 24 * 60 * 60 * 1000 * 1000;
int seconds = 365 * 24 * 60 * 60 * 1000;
System.out.println(millSeconds);
System.out.println(seconds);
System.out.println(millSeconds/seconds);
System.out.println(millSeconds + java.lang.Integer.MIN_VALUE - java.lang.Integer.MAX_VALUE );
int a = 20;
int b = 10;
// a = a + b;
// b = a - b;
// a = a - b;
// System.out.println( "a:" + a + " b:" + b);
a = a * b;
b = a / b;
a = a / b;
System.out.println( "a:" + a + " b:" + b);
byte m = (byte)130;
System.out.println(Byte.MAX_VALUE);
System.out.println(Byte.MIN_VALUE);
System.out.println(m);
}
}