forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasicTypes3.java
More file actions
20 lines (16 loc) · 465 Bytes
/
BasicTypes3.java
File metadata and controls
20 lines (16 loc) · 465 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Vector {}
class BasicTypes3 {
Boolean B;
Integer I;
Double D;
String S;
Vector V;
public static void main(String[] args) {
BasicTypes3 bt3 = new BasicTypes3();
System.out.println(bt3.B == null ? 1 : 0);
System.out.println(bt3.I == null ? 1 : 0);
System.out.println(bt3.D == null ? 1 : 0);
System.out.println(bt3.S == null ? 1 : 0);
System.out.println(bt3.V == null ? 1 : 0);
}
}