Question: Please use Java Enter input etring: Jill, Allan (3) Extract the two words from the input string and remove any spaces. Store the strings in

Please use JavaPlease use Java Enter input etring: Jill, Allan (3) Extract the two

Enter input etring: Jill, Allan (3) Extract the two words from the input string and remove any spaces. Store the strings in two separate variables and output the strings. (2pts) EX Entar input string: Jill, Allen Firet word: Jill Second word: Allen (4) Using a loop, extend the program to handle multiple lines of input. Continue until the user enters q to quit. (2 pts) Ex Enter input string: Jill, Allan First word: Jill Second word: Allen Enter ingut string: Golden, Monkey Firet ward: Galden Eecond word: Monkey Enter input etring: mashington, ne First word: Washington second rord: DC Enter input etring: q \begin{tabular}{l|l} LAB & 9.6.1: LAB: Warm up: Parsing strings \end{tabular} ParseStrings.java Load default template... \begin{tabular}{r|r} 1 & Irport java.util. Scanner; \\ 2 & \\ 3 & public class Parsestrings \{ \\ 4 & public static vold main(5tring[1 args) \\ 5 & 5cannem scre - new Scanner(Systen,1n); \\ 5 & \\ 7 & fype your code here. % \\ 0 & 3 \\ 9 & \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!