Question: Begginer Java Write a class StringStuff which creates a Scanner and then does the following: your full name: This may be several Ask the
Begginer Java
Write a class StringStuff which creates a Scanner and then does the following: your full name: " This may be several Ask the user to enter their full name using this exact prompt: System.out.print ("Enter Print the first letter of the name. Use the substring method. Print the last letter of the name. Use the substring method. Print just their first name. See below for some help with this Print the rest of the name (do not include the space) Print 2 characters starting at index 2. You can assume there are at least 5 character in the name words To get just the first name, you need to know the index of the first space. You can find the index of the first space with the indexOf method. str.indexof"" There is no starter file For the draft, do the first three steps will return the index of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
