-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathLit.java
34 lines (32 loc) · 963 Bytes
/
Lit.java
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
public class Lit {
public static void main(String[] args) {
Lit n = null;
System.out.println(n);
boolean bool = false;
char c = 0x41;
byte b = 0b101;
short s = 3;
int i = -22;
long l = 987654321000L;
float f = 1.012334f;
double d = -14.032456;
String str = "Hello, world!";
System.out.println(bool);
System.out.println(c);
System.out.println(b);
System.out.println(s);
System.out.println(i);
System.out.println(l);
System.out.println(f);
System.out.println(d);
System.out.println(str);
System.out.println(true);
System.out.println(0x11);
System.out.println(0b011);
System.out.println(-22);
System.out.println(987654321000L);
System.out.println(1.012334f);
System.out.println(-14.032456);
System.out.println("Hello, world!");
}
}