Question: chegg please use array unbounded queue and make the answer very simple and clear Write a Java program that repeatedly prompts the user to enter
Write a Java program that repeatedly prompts the user to enter strings, using the string " x done" to indicate when finished. The user is assumed to only enter strings of the form "CS-stName", "SE-stAame", "CCCstNapee" or "DSAI-sAlame". Output the names that had "CS" indicated in the same order they were entered, preceded by the string "CS students: ", and then do the same for the names that had "SE" indicated, preceded by the string "SE students: ". Do the same to the names that had "CCC" indicated, preceded by the string "CCC students:", and for the names that had "DSAI" indicated, preceded by the string "DSAI students:" Use four ArrayUnboundedQueue objects in your program. Sample Run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
