Question: Program 1 Write a java program StringSeparation1.java that reads in a string and prints individual characters from the string on separate lines. Sample Output: Enter
Program 1 Write a java program StringSeparation1.java that reads in a string and prints individual characters from the string on separate lines. Sample Output: Enter your string: IOWA I O W A ============================= Program 2 Write a java program StringSeparation2.java that reads in a name and separates the string into firstName, middleInitial and lastName (three string variables/two strings and a char). Print the three parts of the original string on separate lines. Sample Output: Enter your name: John U Doe //could be some other name - don't force on the number of characters The first name is: John The middle initial is: U The last name is: Doe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
