-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
21 lines (19 loc) · 733 Bytes
/
Copy pathMain.java
File metadata and controls
21 lines (19 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package Converter;
import java.util.Scanner;
public class Main extends Polymorphism {
public static void main(String[] args) {
System.out.println(".....................................Menu...................................");
Polymorphism pm = new Polymorphism();
pm.funCal();
rec();
}
static void rec()
{
Scanner input = new Scanner(System.in);
System.out.println("\nDo you wants to go Menu again? \n If yes enter 1 else 0");
int choice = input.nextInt();
Polymorphism pm = new Polymorphism();
if(choice==1) { pm.funCal(); rec(); }
else System.out.println("Thank You! Have a good day :)");
}
}