-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhome.java
More file actions
35 lines (34 loc) · 1.09 KB
/
home.java
File metadata and controls
35 lines (34 loc) · 1.09 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
import java.util.Scanner;
public class home {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int z=1;
do {
System.out.println("Choose Your option:");
System.out.println("1.Your Private IP");
System.out.println("2.Search IP Address of a Website ");
System.out.println("3.Search GEO Location of a IP Address");
System.out.println("4.Exit");
System.out.println("Enter The Choice:");
int a = sc.nextInt();
switch (a){
case 1:
ipaddress.main();
break;
case 2:
Ipfinder.main();
break;
case 3:
Main.main();
break;
case 4:
z=0;
System.out.println("Thank you!");
break;
default:
System.out.println("Invalid Choice!");
break;
}
}while (z==1);
}
}