forked from natural/java2python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClass07.java
More file actions
29 lines (24 loc) · 445 Bytes
/
Class07.java
File metadata and controls
29 lines (24 loc) · 445 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
class Class07 {
static int a = 1;
private static int b = 2;
private int c;
private void x() {
System.out.println('x');
}
private void y() {
System.out.println(a);
}
private void empty() {
}
private void z(int a) {
System.out.println(a);
}
public static void main(String[] args) {
System.out.println(a);
System.out.println(b);
Class07 c = new Class07();
c.x();
c.y();
c.z(3);
}
}