-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.emj
More file actions
69 lines (50 loc) · 886 Bytes
/
Test.emj
File metadata and controls
69 lines (50 loc) · 886 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
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
61
62
63
64
65
66
67
68
69
class Example {
public static void main(String [] args) {
System.out.println(new Fac().ComputeFac(5, 10));
}
}
class B extends A/*Fac*/ {
//int val;
Fac varFac;
String f;
Fac varG;
public int foo() {
Fac dfdf;
//dfd.hfg();
String s;
boolean b;
s = "Hi";
//val = s;
b = dfdf.stop(1);
val = 42;
return val;
}
/* public int stop() {
System.out.println("stop()");
return 0;
}
*/
}
class Fac {
public int ComputeFac(int num, int num1) {
//Fac f;
int num_aux ;
if (num < 1 || num == 0)
num_aux = 1 ;
else
num_aux = num * (this.ComputeFac(num,1)) ;
return num_aux ;
}
public boolean stop(int param1) {
// System.out.println("stop()");
return false;
}
}
class A {
int val;
public int foo() {
boolean val;
val = false;
return 41;
}
}