subject

When a user signs in for the first time to a website, the user has to submit personal information, such as user_id, name, email address, telephone number and so on. Typically, there are two fields for passwords, requiring the user to enter the password twice, to ensure that the user did not make a typo in the first password field. Write a class encapsulating the concept of processing a form with the following elements:User_idPasswordReenter passwordEmail addressNameStreet will store these values as strings in an array. Write the following methods in your class:1. A constructor with one parameter, an array of 10 strings (representing one element for each of the fields above), the only instance variable.2. Accessor, mutator, toString methods3. A method checking that no Strings are empty. If at least one is empty, return false; otherwise return true.4. A method returning the number of characters in the user_id5. A method checking if the two Strings representing the password fields are the same, if they are return true, otherwise false.6. A method checking if the email address contains one and only one @ character and contains at least one "." after the @ character. If these conditions are met, return true; otherwise return false.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
question
Computers and Technology, 24.06.2019 16:00
Which type of cloud computing offers easily accessible software and applications on the machines
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
He computer component that disperses heat from the microprocessor to the cooling fan is a cooler thermometer heat sink
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
The police department is excited to have some new motorcycle units. one officer said that these motorcycles can go from 0 miles per hour to 80 miles per hour in just 6 seconds. the officer is describing the motorcycle's a. average speed. b. distance. c. average velocity. d. acceleration.
Answers: 1
You know the right answer?
When a user signs in for the first time to a website, the user has to submit personal information, s...
Questions
question
History, 20.12.2021 14:00
question
Mathematics, 20.12.2021 14:00
Questions on the website: 13722363