Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago