Question: Java. Please, help ASAP Write an executable program that has just a main method. In main: create an instance of StringBuilder that initially holds an
Java. Please, help ASAP Write an executable program that has just a main method. In main: create an instance of StringBuilder that initially holds an empty string. append your first name to the string. append your surname to the string. display your name. insert your middle initial where it should be and spaces as needed. If you don't have a middle name, fake it. display your name with middle initial. delete your initial and space(s). display your name in reverse order. SAMPLE OUTPUT John Public John Q Public cilbuP nhoJ This code does all job, but doesn't remove the middle name in the last line of the output: https://www.chegg.com/homework-help/questions-and-answers/need-assistance-writing-program-java-please-write-executable-program-main-method-main-crea-q18641746 Thank you in advance!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
