-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile0.java
More file actions
29 lines (22 loc) · 680 Bytes
/
file0.java
File metadata and controls
29 lines (22 loc) · 680 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 p_Dog {
public static void main (String [] id) {
{
System.out.println("Hello World!");
System.out.println(new cat().newMethod(5));
/*System.out.println("10 + 20 - 4");
System.out.println(10 + 20 - 4);
System.out.println(305);
System.out.println("2 Plus 2");
System.out.println(2 + 2);
System.out.println(5 + 3 * 2 - 3 * 5 + 4 - 23 + 2 - 9 * 1 - 3 + 5 + 4 + 3 - 4 - 5 * 3);*/
}
}
}
class cat {
public int newMethod(int y){
int x;
x = y;
System.out.println(x);
return x;
}
}