Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Robert Maino

Greenhorn
+ Follow
since Feb 23, 2013
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Robert Maino

Thats the only thing -le shrug- I couldnt exactly find a way to test it, im still looking in my book. Bizarre i know, but this entire thing has been so stressful I am not sure how to create a list of objects xD
7 years ago
Well I took all of you all's advice, how does this look?

ListSCBl.java



Node.java
7 years ago
Alright, so I tried something else, but I still have zero indication whether to tell me if I am on the right track or not.

ListSCBL.Java


Node.java
7 years ago

Stevens Miller wrote:

Robert Maino wrote:Oh I see, so the pointer does not have a value in itself, while all the other elements have values as well as a pointer directing them to the next element.



You got it, Robert!



Thats great, but I still do not know how to implement it Q_Q
7 years ago
Here is a full summary of what I have to do, it should explain in easier terms what I am trying to accomplish with the "dummy" head.

http://www.pcs.cnu.edu/~siochi/classes/cpsc270/ListSCBL/
7 years ago
Oh I see, so the pointer does not have a value in itself, while all the other elements have values as well as a pointer directing them to the next element.

So, the issue I am having now is how do i get that pointer without a value to act as a cursor?
7 years ago
Will understanding doubly linked lists help me with understanding a dummy node acting as a cursor to a singly linked list?
7 years ago
Well its not necessarily that I even know. The main issue is that I have gone all over the internet and gotten conflicting signals on how to create an empty singly linked list using a dummy head and I am not sure now how to even check if what I have is right. Most of the stress revolves around creating the Dummy Head.
7 years ago
Hey everyone, Ive been trying in vain to figure out what I am supposed to do for this. I have been all over the internet for days, and every time I think I got it right I find something else that makes me think otherwise.

What I am trying to do is set up a constructor for a singly-linked list that makes the list empty. I also have absolutely no idea how to create a Dummy head, and to complete my assignment I need to implement one.

This is what I have so far:

7 years ago