Question
Create a circular (singly linked list) of ints using the file in HW10. You are to use SINGLY LINKED NODES and NOT the java Linked
Create a circular (singly linked list) of ints using the file in HW10.
You are to use SINGLY LINKED NODES and NOT the java Linked List class.
Pass this list to a method that deletes ever node whose item is an EVEN number.
Print the list. You should have only odd numbers remaining.
HW10:
import java.util.ArrayList; import java.util.List; import java.util.Scanner;
public static void main(String[] args) { //create a list called "list1" that conatains integers Scanner keyboard = new Scanner(System.in); List Rubric: * method to create initial CIRCULAR list * method to print CIRCULAR list * method to delete even numbers from CIRCULAR LIST. Only HALF credit if you turned it into a list, deleted , and then made it circular again * Good, modular, well written code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started