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
Get step-by-step solutions from verified subject matter experts
