SlideShare a Scribd company logo
1 of 1
Download to read offline
Hello please help me with this java assignment. Thank you!
A circular list is a linked list in which the last node points back to the first node . There are many
ways to design a circular list. Sometimes there is a pointer to the head of the list. However, this
makes the list less like a real circle and more like an ordinary list that has its end attached to its
beginning.
Make a class for a singly linked circular list that has no end and no beginning. The only access to
the list is a single reference, current, that can point to any node on the list. This reference can
move around the list as needed. Your list should handle insertion, searching, and deletion. You
may find it convenient if these operations take place one node downstream of the node pointed to
by current. (Because the upstream node is singly linked, you cant get at it without going all the
way around the circle.) You should also be able to display the list (although youll need to break
the circle at some arbitrary point to print it on the screen). A step() method that moves current
along to the next link might come in handy too.

More Related Content

Similar to Hello please help me with this java assignment Thank you A.pdf

circularlinklist-190205164051.pptx
circularlinklist-190205164051.pptxcircularlinklist-190205164051.pptx
circularlinklist-190205164051.pptx
MeghaKulkarni27
 

Similar to Hello please help me with this java assignment Thank you A.pdf (13)

circularlinklist-190205164051.pptx
circularlinklist-190205164051.pptxcircularlinklist-190205164051.pptx
circularlinklist-190205164051.pptx
 
data structures and applications power p
data structures and applications power pdata structures and applications power p
data structures and applications power p
 
Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm
 
Linked List.pptx
Linked List.pptxLinked List.pptx
Linked List.pptx
 
Link_List.pptx
Link_List.pptxLink_List.pptx
Link_List.pptx
 
Skipl List implementation - Part 1
Skipl List implementation - Part 1Skipl List implementation - Part 1
Skipl List implementation - Part 1
 
Lecture 2b lists
Lecture 2b listsLecture 2b lists
Lecture 2b lists
 
Data Structures(Part 1)
Data Structures(Part 1)Data Structures(Part 1)
Data Structures(Part 1)
 
Doubly linklist
Doubly linklistDoubly linklist
Doubly linklist
 
Linked lists
Linked listsLinked lists
Linked lists
 
Circular link list.ppt
Circular link list.pptCircular link list.ppt
Circular link list.ppt
 
DataStructures
DataStructuresDataStructures
DataStructures
 
Short dec
Short decShort dec
Short dec
 

More from standly3

Answer all 4 questions from the case study Thanks Digital .pdf
Answer all 4 questions from the case study Thanks Digital .pdfAnswer all 4 questions from the case study Thanks Digital .pdf
Answer all 4 questions from the case study Thanks Digital .pdf
standly3
 
8 Choose the correct statement a Seismic waves travel fas.pdf
8 Choose the correct statement a Seismic waves travel fas.pdf8 Choose the correct statement a Seismic waves travel fas.pdf
8 Choose the correct statement a Seismic waves travel fas.pdf
standly3
 
Charles Schwab versus Andrew Cuomo Charles Schwab started th.pdf
Charles Schwab versus Andrew Cuomo Charles Schwab started th.pdfCharles Schwab versus Andrew Cuomo Charles Schwab started th.pdf
Charles Schwab versus Andrew Cuomo Charles Schwab started th.pdf
standly3
 

More from standly3 (20)

Answer all 4 questions from the case study Thanks Digital .pdf
Answer all 4 questions from the case study Thanks Digital .pdfAnswer all 4 questions from the case study Thanks Digital .pdf
Answer all 4 questions from the case study Thanks Digital .pdf
 
A The Financial Manager is the head of the HR department B.pdf
A The Financial Manager is the head of the HR department B.pdfA The Financial Manager is the head of the HR department B.pdf
A The Financial Manager is the head of the HR department B.pdf
 
Discussion 71 Organization Structure and Social Responsib.pdf
Discussion 71  Organization Structure and Social Responsib.pdfDiscussion 71  Organization Structure and Social Responsib.pdf
Discussion 71 Organization Structure and Social Responsib.pdf
 
6 Describe the general structure of all cell membranes Wha.pdf
6 Describe the general structure of all cell membranes Wha.pdf6 Describe the general structure of all cell membranes Wha.pdf
6 Describe the general structure of all cell membranes Wha.pdf
 
Assuming you were provided with 1 Million USD in excess fund.pdf
Assuming you were provided with 1 Million USD in excess fund.pdfAssuming you were provided with 1 Million USD in excess fund.pdf
Assuming you were provided with 1 Million USD in excess fund.pdf
 
Biologists define evolution as The origin of species Heritab.pdf
Biologists define evolution as The origin of species Heritab.pdfBiologists define evolution as The origin of species Heritab.pdf
Biologists define evolution as The origin of species Heritab.pdf
 
After watching the film The Race For the Double Helix aka.pdf
After watching the film  The Race For the Double Helix aka.pdfAfter watching the film  The Race For the Double Helix aka.pdf
After watching the film The Race For the Double Helix aka.pdf
 
8 Choose the correct statement a Seismic waves travel fas.pdf
8 Choose the correct statement a Seismic waves travel fas.pdf8 Choose the correct statement a Seismic waves travel fas.pdf
8 Choose the correct statement a Seismic waves travel fas.pdf
 
5 There are lots of types of proteins that transport molecu.pdf
5 There are lots of types of proteins that transport molecu.pdf5 There are lots of types of proteins that transport molecu.pdf
5 There are lots of types of proteins that transport molecu.pdf
 
Charles Schwab versus Andrew Cuomo Charles Schwab started th.pdf
Charles Schwab versus Andrew Cuomo Charles Schwab started th.pdfCharles Schwab versus Andrew Cuomo Charles Schwab started th.pdf
Charles Schwab versus Andrew Cuomo Charles Schwab started th.pdf
 
yi vizyon ifadeleri bir organizasyonun mevcut durumuyla bir.pdf
yi vizyon ifadeleri bir organizasyonun mevcut durumuyla bir.pdfyi vizyon ifadeleri bir organizasyonun mevcut durumuyla bir.pdf
yi vizyon ifadeleri bir organizasyonun mevcut durumuyla bir.pdf
 
1 Salomon v Salomon amp Co Ltd 1897 AC 22 davas u ilke .pdf
1 Salomon v Salomon amp Co Ltd 1897 AC 22 davas u ilke .pdf1 Salomon v Salomon amp Co Ltd 1897 AC 22 davas u ilke .pdf
1 Salomon v Salomon amp Co Ltd 1897 AC 22 davas u ilke .pdf
 
1 Log into the US Small Business Administration website a.pdf
1 Log into the US Small Business Administration website a.pdf1 Log into the US Small Business Administration website a.pdf
1 Log into the US Small Business Administration website a.pdf
 
2 Problem In a MIMO system Random Vectors XYN are relat.pdf
2 Problem In a MIMO system Random Vectors XYN are relat.pdf2 Problem In a MIMO system Random Vectors XYN are relat.pdf
2 Problem In a MIMO system Random Vectors XYN are relat.pdf
 
1 El sistema de evaluacin del desempeo de la escala de ca.pdf
1 El sistema de evaluacin del desempeo de la escala de ca.pdf1 El sistema de evaluacin del desempeo de la escala de ca.pdf
1 El sistema de evaluacin del desempeo de la escala de ca.pdf
 
xkf1i1nxi.pdf
xkf1i1nxi.pdfxkf1i1nxi.pdf
xkf1i1nxi.pdf
 
Why does the number of valence electrons matter The number .pdf
Why does the number of valence electrons matter The number .pdfWhy does the number of valence electrons matter The number .pdf
Why does the number of valence electrons matter The number .pdf
 
Which of the following best defines organizational behavior.pdf
Which of the following best defines organizational behavior.pdfWhich of the following best defines organizational behavior.pdf
Which of the following best defines organizational behavior.pdf
 
Week 2 Discussion Board please answer the following in this .pdf
Week 2 Discussion Board please answer the following in this .pdfWeek 2 Discussion Board please answer the following in this .pdf
Week 2 Discussion Board please answer the following in this .pdf
 
4 Compare how different molecules can diffuse across a pure.pdf
4 Compare how different molecules can diffuse across a pure.pdf4 Compare how different molecules can diffuse across a pure.pdf
4 Compare how different molecules can diffuse across a pure.pdf
 

Recently uploaded

Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 

Recently uploaded (20)

OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Ernest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell TollsErnest Hemingway's For Whom the Bell Tolls
Ernest Hemingway's For Whom the Bell Tolls
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptxMichaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
Michaelis Menten Equation and Estimation Of Vmax and Tmax.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 

Hello please help me with this java assignment Thank you A.pdf

  • 1. Hello please help me with this java assignment. Thank you! A circular list is a linked list in which the last node points back to the first node . There are many ways to design a circular list. Sometimes there is a pointer to the head of the list. However, this makes the list less like a real circle and more like an ordinary list that has its end attached to its beginning. Make a class for a singly linked circular list that has no end and no beginning. The only access to the list is a single reference, current, that can point to any node on the list. This reference can move around the list as needed. Your list should handle insertion, searching, and deletion. You may find it convenient if these operations take place one node downstream of the node pointed to by current. (Because the upstream node is singly linked, you cant get at it without going all the way around the circle.) You should also be able to display the list (although youll need to break the circle at some arbitrary point to print it on the screen). A step() method that moves current along to the next link might come in handy too.