Question: DRAW A UML CLASS DIAGRAM FOR THE CODE BELOW #NEED THIS ASAP WILL RATE HIGHLY import java.util.ArrayList; import java.util.Scanner; public class Admin { public void

DRAW A UML CLASS DIAGRAM FOR THE CODE BELOW #NEED THIS ASAP WILL RATE HIGHLY import java.util.ArrayList; import java.util.Scanner; public class Admin { public void insert() { String username, password; Scanner s = new Scanner(System.in); System.out.print(" Enter username:");//username:user username = s.nextLine(); System.out.print("Enter password:");//password:user password = s.nextLine(); if (username.equals("admin") && password.equals("1234")) { Scanner input = new Scanner(System.in).useDelimiter(" "); while (true) { ArrayList arrayList = new ArrayList<>(); System.out.println(" ===================================================="); System.out.println(" Thai Festival Booth System "); System.out.println("===================================================="); System.out.println("[1] Add New Seller Details"); System.out.println("[2] Delete Seller Details"); System.out.println("[3] Update Seller Details"); System.out.println("[4] View Seller Details"); System.out.println("[5] Quit Program"); System.out.println("===================================================="); System.out.print("Select a Number : "); int x = input.nextInt(); process AP = new process(); if (x == 5) { System.out.println(); System.out.print("Thank you for using this program."); System.out.println(); break; } else if (x == 1) { AP.createAddNewPerson(input); } else if (x == 2) { AP.deleteRecordById(arrayList, input); } else if (x == 3) { AP.updateRecord(arrayList, input); } else if (x == 4) { AP.getUserById(input); //AP.getAllPersons(); } else { System.out.println(" please enter a vaild number "); } } }}}                                            
                    

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!