Skip to content
Advertisement

Tag: nodes

Doubly Linked List adding null

I’m new to Java. I want to make student information system, but whenever I used the addStudent method, I get a list with null values. This is the student class for getting names telephone numbers and student ID. This is the Node class. Methods can be wrong maybe they are too complicated sorry for that. I’m trying to learn Java.

How can I insert an Item at the end of the List?

I am working on a project for my Data Structures class that asks me to write a class to implement a linked list of ints. Use an inner class for the Node. Include the methods below. Write a tester to enable you to test all of the methods with whatever data you want in any order. I have a method

Removing values from a custom LinkedList class

This custom class mimics the functionality of Java’s LinkedList Class except it only takes integers and obviously lacks most of the functionality. For this one method, removeAll(), I am to go through each node for the list and remove all nodes with that value. My problem is that when the first node in the list contains the value to be

Advertisement