(Solved) : Mccloginjava Use Gui Dialog Boxes Prompt Three Separate Strings User S First Name User S L Q37277132 . . .
- MCClogin.java:
- Use GUI dialog boxes to prompt for three separate Strings:user’s first name, user’s last name, user’s student number.
- Then, use three StringBuilder objects asfollows and display them in a dialog box:
userName– contains the user’s first name, aperiod, and last name, all run together, in lowercase
password– contains first initial followed by lastinitial (in lower case) followed by student number followed by !(exclamation point) in that order, no spaces
message– this one contains a messages that tellsthe user what their user name and password is, suchas: Youruser name is john.smith and your password is js123456!
- You are required to use StringBuilder and also make use of BOTHappend() and insert() methods forthis program. Do NOT just concatenate these items together with +signs!
- When testing: anticipate that your user might enter items in amixture of upper and lower case, or all upper case
- StringPlay.java: Write an applicationthat demonstrates each of the following methods, based on thestatement String play = “Java was created by SunMicrosystems”;
- indexOf(‘M’)
- startsWith(“Java”)
- replace(‘s’, ‘S’)
- use substring to pull out the phrase “created by” intoa new string
- SplitZip.java: Write an application thatprompts the user to enter in a 10 character zip code, such as
49442-1432. Use thesplit() method to separate the zip codeinto its two parts and display them separately.
Expert Answer
Answer to MCClogin.java: Use GUI dialog boxes to prompt for three separate Strings: user’s first name, user’s last name, user…
OR