File input and output

A 5.5 File input and output
5. 6 Warm up: Parsing strings (Java)
[1) Prompt the user for a string that contains turd strings separated by a comma. {1 pt} I Examples of strings that can be accepted:
0 Jill, Allen a Jill.Allen
o Jill,Allen Ex: Enter input string: Jill, Allen [2) Report an error if the input string does not contain a comma. Cbntinue to prompt until a valid string is entered. Mate: if the tram contains a
comma. then assume that the rim also ccntarhs rm: strings. {2 pts} Ex: Enter input string: Jill Allan
Error: No comm: in string
Enter input string: Jill, Allan

 
"Looking for a Similar Assignment? Order now and Get 10% Discount! Use Code "Newclient"