Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions

Question

4. Develop a self-directed learning module.

Answered: 1 week ago