You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.out.println("Enter 1. To add something to do list\nEnter 2. To update to do list\nEnter 3. To Delete something from to do list\n"); //presents menu to user
num = sc.nextInt();
switch(num) //using switch case
{
case1 :
{
Adda=newAdd(); // imports add class
a.addlist(username);
break; // exit the loop
}
case2 :
{
Updatea =newUpdate(); // imports update class
a.updatelist(username);
}
case3 :
{
Deletea=newDelete();
a.Deletelist(username);
break; // exit the loop
}
default:
System.out.println("You have entered wrong choice"); // Displays message for entering wrong choice