Question: Make a Linked List in Java Declare a class named User that contains the following information: String Name String username String password Include in the

Make a Linked List in Java

Declare a class named User that contains the following information:

String Name

String username

String password

Include in the class a single constructor that is passed a particular first and last

name,username,and password; setters and getters, and a toString method that returns the

information ia given User object as follows:"Ashley Smith" username: asmith password:"aWjPP406!"

Declare a class named UserNode that contains a single User object and a link to another

UserNode. Include an appropriate constructor and an appropriate set of methods for this

class.

2.

Create a class named UserAccounts that maintains a list of user accounts, with an appropriate

constructor, and the following methods: isEmpty()

returns true if list is empty, and false otherwise

findPasswordreturns the password for a given user name changePasswordupdates the password for a given user name

and password. If they do not match, the password is not updated. addUser passed a User object to add deleteUser deletes a user for a given user name and pass

word. If they do not match, the user is not deleted. printUsersprints a list of all user names, username and password

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!