Question: Write a JAVA application (class name: Initials) that reads in your first name and last name and stores it as one String. - Print out
Write a JAVA application (class name: Initials) that reads in your first name and last name and stores it as one String. - Print out your initials to the screen. Hint: use the "charAt()" method to get the first character of your first name and store it in a variable, then use the "indexOf" and "charAt()" methods to get the first character of your family name and store it in another variable. - extract your family name and print it to the screen. Hint: use the "substring()" method. For example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
