Question: HELP IN JAVA: Input is from the keyboard. Input integers, you don't know how many but the last one will be zero. Put these integers

HELP IN JAVA: Input is from the keyboard. Input integers, you don't know how many but the last one will be zero. Put these integers into a list called list1 (not sorted, just put each new one at the end of the list. ) When you have finished creating your list, print it. Then create two new lists, one to hold all the even integers, one for the odds. Go through your original list deleting a node and adding it to either the odd or even list. Print out all three lists (the original one should now be empty).

Prompted the user for input

Used nodes and NOT a built in class

This criterion is linked to a Learning OutcomeInput from keyboard terminating in 0

Deleted nodes from first list

Added correctly to other lists

Printed out all three lists

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!