subject

Part 2: 1. Create a new Java project called Lab8B and a class named Lab8B 2. Inside this project create a class called PasswordChecker, which should have the following. a. A String instance variable named password. b. A constructor that accepts one string as a parameter and puts it into the instance variable. c. A bool method named checkPassword that returns a true if it is valid, and false otherwise. The rules for a password are: i. It must be at least 8 characters long ii. It must have at least one number in it. iii. It must have at least one of the following characters: ! & * % $ iv. It cannot have two identical characters beside each other. (Ex – Their8WWorld is invalid because of the 2 WW beside each other.) 3. Back in the main method of the outer class: a. Ask the user to enter a password b. Declare and instantiate a PasswordChecker object (with a name of your choice) and send in the input password as the parameter. c. Call checkPassword for the object and print the result with a label.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, jayjay5246
What is the term for water wave that is created by an underwater earthquake
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, rustjallison9928
Asecurity policy is a a. set of guidlines b. set of transmission protocols c. written document d. set of rules based on standards and guidelines
Answers: 2
image
Computers and Technology, 24.06.2019 08:20, brinks7994
Which type of entity describes a fundamental business aspect of a database? a. linking b. lookup c. domain d. weak
Answers: 3
image
Computers and Technology, 24.06.2019 13:30, elviaortiz402373
Which of the following is not a “fatal four” event?
Answers: 2
You know the right answer?
Part 2: 1. Create a new Java project called Lab8B and a class named Lab8B 2. Inside this project cre...

Questions in other subjects:

Konu
History, 27.01.2021 01:00
Konu
Mathematics, 27.01.2021 01:00
Konu
Mathematics, 27.01.2021 01:00