Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started