Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
638 B
2
Indexable
Scanner sc=new Scanner(System.in);
        boolean loop=true;
        while (loop) {
            System.out.println("----MENU----");
            System.out.println("1.Create");
            System.out.println("2.Insert");
            System.out.println("3.Update");
            System.out.println("4.Delete");
            System.out.println("-1.Exit");
            Integer choice=sc.nextInt();
            switch (choice) {
                case 1:
                    
                    break;
                case -1:
                System.out.println("Thak You");
                sc.close();
                loop=false;
            }