forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasicTypes0.java
More file actions
30 lines (20 loc) · 533 Bytes
/
BasicTypes0.java
File metadata and controls
30 lines (20 loc) · 533 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
class BasicTypes0 {
public static void main(String[] args) {
byte B = 127;
System.out.println(B);
short S = 10240;
System.out.println(S);
char C = 'x';
System.out.println(C);
int I = 48;
System.out.println(I);
long L = 1234567890;
System.out.println(L);
float F = 0.1f;
System.out.println(F);
double D = 0.1;
System.out.println(D);
boolean O = true;
System.out.println(O ? 42 : -3);
}
}