- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecall.java
More file actions
Latest commit
32 lines (27 loc) · 551 Bytes
/
Copy pathrecall.java
File metadata and controls
32 lines (27 loc) · 551 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
packagejavatest;
importjava.util.Scanner;
publicclassrecall {
publicintsumcheck() {
Scannerab=newScanner(System.in);
inta,b,c;
System.out.println("enter a value");
a=ab.nextInt();
b=ab.nextInt();
c=a+b;
returnc;
}
publicstaticvoidmain(String[] args) {
recallobj= newrecall();
intc;
c=obj.sumcheck();
if(c>30) {
System.out.println(c);
}
else {
obj.main(args);
System.out.println(c);
}
//System.out.println(c);
System.out.println("program end");
}
}