forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLiterals0.java
More file actions
28 lines (24 loc) · 561 Bytes
/
Literals0.java
File metadata and controls
28 lines (24 loc) · 561 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
class Literals0 {
public static void main (String [] args) {
int h = 0xAA;
int o = 034;
float f = .3f;
double d = .4d;
long l = 234l;
char c = 'c';
String s = "string theory";
Boolean F = false;
Boolean T = true;
Object n = null;
System.out.println(h);
System.out.println(o);
System.out.println(f);
System.out.println(d);
System.out.println(l);
System.out.println(c);
System.out.println(s);
System.out.println(T ? 1 : 0);
System.out.println(F ? 1 : 0);
System.out.println(n==null ? 1 : 0);
}
}