Develop a program that will do the following using Java and Javaclasses of Filewriter and Arraylist: The program has the interface [A] Add [D] Delete [U] Update [S] Search [X] Exit Select Operation: A You are about to add a user. Enter the First name: Enter the Last name: Enter the username: Enter password: The user has been successfully added. Do you wish to do another operation? [Y/N]: Y ---------------------------------------------------------------------------------------------- [A] Add [U] Update [S] Search [D] Delete [X] Exit Select Operation: U You are about to update user information. Search ID: 3 User information: First name: Gerald Last name: Moreno Username: igerald Password: egerald Enter new username: asxs Enter new password: erdasdfr Username and Password have been updated successfully. Do you wish to do another operation? [Y/N]: Y ---------------------------------------------------------------------------------------------------------- [A] Add [U] Update [S] Search [D] Delete [X] Exit Select Operation: S Enter User ID: 3 User information: First name: Gerald Last name: Moreno Username: asxs Password: erdasdfr Do you wish to do another operation? [Y/N]: Y ------------------------------------------------------------------------------------------------------- A] Add [U] Update [S] Search [D] Delete [X] Exit Select Operation: D You are about to delete a user. Enter User ID: 3 User information: First name: Gerald Last name: Moreno Username: asxs Password: erdasdfr Has been deleted successfully. Do you wish to do another operation? [Y/N]: Y ---------------------------------------------------------------------------------------- [A] Add [U] Update [S] Search [D] Delete [X] Exit Select Operation: X Thank you for using the application. Bye-bye.
Develop a program that will do the following using Java and Javaclasses of Filewriter and Arraylist:
The program has the interface
[A] Add
[D] Delete
[U] Update
[S] Search
[X] Exit
Select Operation: A
You are about to add a user.
Enter the First name:
Enter the Last name:
Enter the username:
Enter password:
The user has been successfully added.
Do you wish to do another operation? [Y/N]: Y
----------------------------------------------------------------------------------------------
[A] Add
[U] Update
[S] Search
[D] Delete
[X] Exit
Select Operation: U
You are about to update user information.
Search ID: 3
User information:
First name: Gerald
Last name: Moreno
Username: igerald
Password: egerald
Enter new username: asxs
Enter new password: erdasdfr
Username and Password have been updated successfully.
Do you wish to do another operation? [Y/N]: Y
----------------------------------------------------------------------------------------------------------
[A] Add
[U] Update
[S] Search
[D] Delete
[X] Exit
Select Operation: S
Enter User ID: 3
User information:
First name: Gerald
Last name: Moreno
Username: asxs
Password: erdasdfr
Do you wish to do another operation? [Y/N]: Y
-------------------------------------------------------------------------------------------------------
A] Add
[U] Update
[S] Search
[D] Delete
[X] Exit
Select Operation: D
You are about to delete a user.
Enter User ID: 3
User information:
First name: Gerald
Last name: Moreno
Username: asxs
Password: erdasdfr
Has been deleted successfully.
Do you wish to do another operation? [Y/N]: Y
----------------------------------------------------------------------------------------
[A] Add
[U] Update
[S] Search
[D] Delete
[X] Exit
Select Operation: X
Thank you for using the application. Bye-bye...
Step by step
Solved in 2 steps with 1 images