Question: Let's say we have 2 users named admin and user. admin has a password of qwerty. user has a password of password. This method should

Let's say we have 2 users named "admin" and "user".

"admin has a password of "qwerty".

"user has a password of ""password".

This method should return true if the login should be permitted ,and false if it should not. Use if/else statements.

* username a string that represents a username and password a string that represents a password. return true if there is a successful login , and false otherwise.

public boolean loginin (String username, String password){

return false;

Java should be used

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!