New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Ariel Gaylord


Ariel Gaylord
Wentworth Institute of Technology
GPA 3.97


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 2 page Class Notes was uploaded by Ariel Gaylord on Thursday October 29, 2015. The Class Notes belongs to COMP 385 at Wentworth Institute of Technology taught by Staff in Fall. Since its upload, it has received 41 views. For similar materials see /class/230957/comp-385-wentworth-institute-of-technology in ComputerScienence at Wentworth Institute of Technology.

Similar to COMP 385 at Wentworth Institute of Technology

Popular in ComputerScienence




Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/29/15
private static class DNodeltTgt the members of a DNode object are used for operations Within a doublyilinked list data value of the nod e previous node in the list public DNodeltTgt next next node in the default constructor creates an object With the value set to null and whose references point to the node itse public DNode nodeValue null his the next node is the current node prev this the previous node is the current node l creates object whose value is item and whose references point to the node itself public DNodeT item nodeValue item t this the next node is the current node prev this the previous node is the current node l l public class LinkedListltTgt implements ListltTgt IterableltTgt Cloneable javaioSerializable number of elements in the list private int listSiZe the doublyilinked list header node transient private DNodeltTgt header increases whenever the list chan es the class creates for an iterator operation to be l modCount must equal expectedModCount transient private int modCount Creates an empty list public LinkedList header new DNodeltTgt 0 modCount 0 c cOnverterunpuuWWuwsstbss doc 792010 remove DNode referenced by curr private void removeDNodeltTgt curr return if the list is empty if currnext return declare references for the predecessor and successor nodes DNodeltTgt prevNode currprev suchode currneX update reference fields for predecessor and successor prevNodeneXt suchode suchodeprev prevNode private DNodeltTgt addBeforeDNodeltTgt curr T item declare reference variables for new node and previous node DNodeltTgt newNode prevNode create new DNode with item as initial value newNode new DNodeltTgtitem assign prevNode the reference value of node before p prevNode currpr v update reference fields in newNode newNodeprev prevNode newNodeneXt curr update curr and prevNode to point at newNode prevNodenext newNode currp rev newNode return newNode c cOnverterunpuuWWuwsstbss doc 2 792010


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Jennifer McGill UCSF Med School

"Selling my MCAT study guides and notes has been a great source of side revenue while I'm in school. Some months I'm making over $500! Plus, it makes me happy knowing that I'm helping future med students with their MCAT."

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"


"Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.