Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CS 101 A+ Computer Science LINKED LIST IVARS Lab Goal : This lab was designed to teach you more about a linked list and using a linked list in a class as an...

Rating
-
Sold
-
Pages
13
Grade
A+
Uploaded on
28-10-2022
Written in
2022/2023

A+ Computer Science LINKED LIST IVARS Lab Goal : This lab was designed to teach you more about a linked list and using a linked list in a class as an instance variable / data field. Lab Description : Use ListNode to write some basic LinkedList methods. PART 1 - Open the ListFunHouseTwo . java file and complete the methods in this class. PART 2 - Use the ListFunHouseTwoRunner to test your ListFunHouseTwo class. ListNode - stores a value and a reference to the next node public class ListNode implements Linkable private Comparable listNodeValue; EXTENSION : Modify ListNode by adding in private ListNode nextListNode; a ListNode prevList Node instance variable / data field. Rewrite the program as public ListNode () { listNodeValue = null; a double/circular linked list. nextListNode = null; public ListNode (Comparable value, ListNode next) { listNodeValue=value; nextListNode=next; Files Needed :: public Comparable getValue () { return listNodeValue; ListNode . java Linkable . java public ListNode getNext () { ListFunHouseTwo . java return nextList Node; ListFunHouseTwoRunner . java public void setValue (Comparable value) ( listNodeValue = value; public void setNext (Linkable next) { nextListNode = (ListNode) next; Sample Data : See the main of lab15c. Sample Output : Original list values over up -a-2-1 2. 1 34 at on go num nodes = List values after calling nodeCount over up -a-2-1 2.1 34 at on go List values after calling doubleLast over up -a-2-1 2.1 34 at on go go List values after calling doubleFirst over over up -a-2-1 2.1 34 at on go go List values after calling removeXthNode (2) over up 2.1 at go A+ Computer Science - Linked Lists - List values after calling setxthNode (2, one) over one 2.1 one go

Show more Read less
Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
October 28, 2022
Number of pages
13
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Abbyy01 Exam Questions
Follow You need to be logged in order to follow users or courses
Sold
96
Member since
4 year
Number of followers
33
Documents
1337
Last sold
2 weeks ago

3.5

13 reviews

5
5
4
2
3
3
2
1
1
2

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions