-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfile1.java
More file actions
60 lines (52 loc) · 1.42 KB
/
file1.java
File metadata and controls
60 lines (52 loc) · 1.42 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
class p_Dog {
public static void main (String [] id) {
{
System.out.println("Hello World!");
System.out.println(new cat().newMethod());
/*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 x;
int y;
int a;
int b;
int c;
int d;
int e;
int f;
a = 1;
b = 2;
c = 3;
d = 4;
e = 5;
f = 6;
y = 12;
x = 10;
x = x + 8;
y = y -x;
a = a * 2 + b - c + d * 4 -f * e - b * c + b * c + c * b + c;
System.out.println(a);
System.out.println(b);
System.out.println(c);
System.out.println(d);
System.out.println(e);
System.out.println(f);
System.out.println(6-4);
System.out.println(5 * 6 + 8 - 3 * 2);
if( 1 <= 2){
System.out.println("It's true");
}else {
System.out.println("it's false");
}
System.out.println("The function is calling from INSIDE the class!!!!!");
return 0;
}
}