Question: Login.java Use GUI dialog boxes to prompt for three separate Strings: users first name, users last name, users student number (make student number a String

Login.java

Use GUI dialog boxes to prompt for three separate Strings: users first name, users last name, users student number (make student number a String even though it could be a number)

Then, use three StringBuilder objects as follows and display them in a dialog box:

userName contains the users first name, a period, and last name, all run together, in lowercase

password contains first initial followed by last initial (in lowercase) followed by student number followed by ! (exclamation point) in that order, no spaces

message this one contains a messages that tells the user what their user name and password is, such as: Your user name is john.smith and your password is js123456!

You are required to use StringBuilder and also make use of BOTH append() and insert() methods for this program. Do NOT just concatenate these items together with + signs!

When testing: anticipate that your user might enter items in a mixture of upper and lower case, or all upper case

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!