-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignment56.java
More file actions
47 lines (30 loc) · 942 Bytes
/
Assignment56.java
File metadata and controls
47 lines (30 loc) · 942 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
package abhilash_Asignments;
//WAP using switch case
import java.util.Scanner; //java . uitle pacakege for scanner class
public class Assignment56 {
//WAP using switch case ?
public static void main(String[] args) // main method
{
System.out.println("select the required email to register");
Scanner s1 = new Scanner(System.in); // scanner class
int b = s1.nextInt(); // decleration
switch (b) // switch class with cases
{
case 1:
System.out.println("register with the gmail id");
break;
case 2:
System.out.println("register with the ymail id");
break;
case 3:
System.out.println("register with the outlook mail id");
break;
case 4:
System.out.println("login with hotmail.com");
break;
default: // default case which is used to instructe wheather the data entered is invald
// or valid by human
System.out.println("invalid input to register the email id ");
}
}
}