SlideShare a Scribd company logo
1 of 2
Download to read offline
Design a program named SortedNameList.java, which implements a list structure with linked list
node (LLNode.java). Your SortedNameList ADT should have the following methods:
Template:
public class SortedNameList{
LLNode head;
public SortedNameList(){
head=null;
}
public LLNode getHead(){
return head;
}
public boolean isEmpty(){
//return true if the list is empty, otherwise true
/* Type your code here. */
}
public void add(Name name){
//add name to the list, after this operation, the list should maintain sorted in ascending order
/* Type your code here. */
}
public void add(LLNode node){
//overloaded method: add node to the list, after this operation, the list should maintain sorted
in ascending order
/* Type your code here. */
}
public int size(){
//return the number of nodes in the list
/* Type your code here. */
return 0; // replace with yours
}
public boolean isFull(){
return false;
}
public int search(Name name){
//return index of the name (the first occurrence) in the list, return -1 if not found
/* Type your code here. */
return -10; // replace with yours
}
public LLNode get(int index){
// return the LLNode object at the specified index location, for invalid index, return null
/* Type your code here. */
return new LLNode(new Name("a","b"), null); //replace with yours
}
public void remove(int index){
//Remove node at the specified index location if valid.
/* Type your code here. */
}
public void remove(Name name){
//remove all occurences of name - please refer to Name class for details
/* Type your code here. */
}
public void removeAll(){
//remove all nodes
}
}

More Related Content

Similar to Design a program named SortedNameList.java, which implements a list .pdf

Write the following using javaGiven a class ‘Node’ and ‘NodeList’,.pdf
Write the following using javaGiven a class ‘Node’ and ‘NodeList’,.pdfWrite the following using javaGiven a class ‘Node’ and ‘NodeList’,.pdf
Write the following using javaGiven a class ‘Node’ and ‘NodeList’,.pdffathimalinks
 
Please help me to make a programming project I have to sue them today- (1).pdf
Please help me to make a programming project I have to sue them today- (1).pdfPlease help me to make a programming project I have to sue them today- (1).pdf
Please help me to make a programming project I have to sue them today- (1).pdfseoagam1
 
Can somebody solve the TODO parts of the following problem- Thanks D.pdf
Can somebody solve the TODO parts of the following problem- Thanks   D.pdfCan somebody solve the TODO parts of the following problem- Thanks   D.pdf
Can somebody solve the TODO parts of the following problem- Thanks D.pdfvinaythemodel
 
maincpp Build and procees a sorted linked list of Patie.pdf
maincpp   Build and procees a sorted linked list of Patie.pdfmaincpp   Build and procees a sorted linked list of Patie.pdf
maincpp Build and procees a sorted linked list of Patie.pdfadityastores21
 
Implementation The starter code includes List.java. You should not c.pdf
Implementation The starter code includes List.java. You should not c.pdfImplementation The starter code includes List.java. You should not c.pdf
Implementation The starter code includes List.java. You should not c.pdfmaheshkumar12354
 
you will implement some sorting algorithms for arrays and linked lis.pdf
you will implement some sorting algorithms for arrays and linked lis.pdfyou will implement some sorting algorithms for arrays and linked lis.pdf
you will implement some sorting algorithms for arrays and linked lis.pdfinfo335653
 
I need to implment a function that can reverse a single linked list..pdf
I need to implment a function that can reverse a single linked list..pdfI need to implment a function that can reverse a single linked list..pdf
I need to implment a function that can reverse a single linked list..pdfrohit219406
 
you will implement some sorting algorithms for arrays and linked lis.pdf
you will implement some sorting algorithms for arrays and linked lis.pdfyou will implement some sorting algorithms for arrays and linked lis.pdf
you will implement some sorting algorithms for arrays and linked lis.pdfclearvisioneyecareno
 
This assignment and the next (#5) involve design and development of a.pdf
This assignment and the next (#5) involve design and development of a.pdfThis assignment and the next (#5) involve design and development of a.pdf
This assignment and the next (#5) involve design and development of a.pdfEricvtJFraserr
 
There are a couple of new methods that you will be writing for this pr.pdf
There are a couple of new methods that you will be writing for this pr.pdfThere are a couple of new methods that you will be writing for this pr.pdf
There are a couple of new methods that you will be writing for this pr.pdfaamousnowov
 
How do I fix this error - Exception in thread -main- java-lang-NullPoi.pdf
How do I fix this error - Exception in thread -main- java-lang-NullPoi.pdfHow do I fix this error - Exception in thread -main- java-lang-NullPoi.pdf
How do I fix this error - Exception in thread -main- java-lang-NullPoi.pdfpnaran46
 
PROBLEM STATEMENTIn this assignment, you will complete DoubleEnde.pdf
PROBLEM STATEMENTIn this assignment, you will complete DoubleEnde.pdfPROBLEM STATEMENTIn this assignment, you will complete DoubleEnde.pdf
PROBLEM STATEMENTIn this assignment, you will complete DoubleEnde.pdfclimatecontrolsv
 
Implement the additional 5 methods as indicated in the LinkedList fi.pdf
Implement the additional 5 methods as indicated in the LinkedList fi.pdfImplement the additional 5 methods as indicated in the LinkedList fi.pdf
Implement the additional 5 methods as indicated in the LinkedList fi.pdffootstatus
 
Need help finishing this doubly linked list code- Commented lines are.docx
Need help finishing this doubly linked list code- Commented lines are.docxNeed help finishing this doubly linked list code- Commented lines are.docx
Need help finishing this doubly linked list code- Commented lines are.docxJason0x0Scottw
 
import java.util.ArrayList; import java.util.List; .pdf
import java.util.ArrayList; import java.util.List;   .pdfimport java.util.ArrayList; import java.util.List;   .pdf
import java.util.ArrayList; import java.util.List; .pdfanuradhasilks
 
Write a program to implement below operations with both singly and d.pdf
Write a program to implement below operations with both singly and d.pdfWrite a program to implement below operations with both singly and d.pdf
Write a program to implement below operations with both singly and d.pdfthangarajarivukadal
 
need this program in java please and thanks!NOTICE There are NO s.pdf
need this program in java please and thanks!NOTICE There are NO s.pdfneed this program in java please and thanks!NOTICE There are NO s.pdf
need this program in java please and thanks!NOTICE There are NO s.pdfarshin9
 
Creat Shape classes from scratch DETAILS You will create 3 shape cla.pdf
Creat Shape classes from scratch DETAILS You will create 3 shape cla.pdfCreat Shape classes from scratch DETAILS You will create 3 shape cla.pdf
Creat Shape classes from scratch DETAILS You will create 3 shape cla.pdfaromanets
 
Inspect the class declaration for a doubly-linked list node in Node-h-.pdf
Inspect the class declaration for a doubly-linked list node in Node-h-.pdfInspect the class declaration for a doubly-linked list node in Node-h-.pdf
Inspect the class declaration for a doubly-linked list node in Node-h-.pdfvishalateen
 
package singlylinkedlist; public class Node { public String valu.pdf
package singlylinkedlist; public class Node { public String valu.pdfpackage singlylinkedlist; public class Node { public String valu.pdf
package singlylinkedlist; public class Node { public String valu.pdfamazing2001
 

Similar to Design a program named SortedNameList.java, which implements a list .pdf (20)

Write the following using javaGiven a class ‘Node’ and ‘NodeList’,.pdf
Write the following using javaGiven a class ‘Node’ and ‘NodeList’,.pdfWrite the following using javaGiven a class ‘Node’ and ‘NodeList’,.pdf
Write the following using javaGiven a class ‘Node’ and ‘NodeList’,.pdf
 
Please help me to make a programming project I have to sue them today- (1).pdf
Please help me to make a programming project I have to sue them today- (1).pdfPlease help me to make a programming project I have to sue them today- (1).pdf
Please help me to make a programming project I have to sue them today- (1).pdf
 
Can somebody solve the TODO parts of the following problem- Thanks D.pdf
Can somebody solve the TODO parts of the following problem- Thanks   D.pdfCan somebody solve the TODO parts of the following problem- Thanks   D.pdf
Can somebody solve the TODO parts of the following problem- Thanks D.pdf
 
maincpp Build and procees a sorted linked list of Patie.pdf
maincpp   Build and procees a sorted linked list of Patie.pdfmaincpp   Build and procees a sorted linked list of Patie.pdf
maincpp Build and procees a sorted linked list of Patie.pdf
 
Implementation The starter code includes List.java. You should not c.pdf
Implementation The starter code includes List.java. You should not c.pdfImplementation The starter code includes List.java. You should not c.pdf
Implementation The starter code includes List.java. You should not c.pdf
 
you will implement some sorting algorithms for arrays and linked lis.pdf
you will implement some sorting algorithms for arrays and linked lis.pdfyou will implement some sorting algorithms for arrays and linked lis.pdf
you will implement some sorting algorithms for arrays and linked lis.pdf
 
I need to implment a function that can reverse a single linked list..pdf
I need to implment a function that can reverse a single linked list..pdfI need to implment a function that can reverse a single linked list..pdf
I need to implment a function that can reverse a single linked list..pdf
 
you will implement some sorting algorithms for arrays and linked lis.pdf
you will implement some sorting algorithms for arrays and linked lis.pdfyou will implement some sorting algorithms for arrays and linked lis.pdf
you will implement some sorting algorithms for arrays and linked lis.pdf
 
This assignment and the next (#5) involve design and development of a.pdf
This assignment and the next (#5) involve design and development of a.pdfThis assignment and the next (#5) involve design and development of a.pdf
This assignment and the next (#5) involve design and development of a.pdf
 
There are a couple of new methods that you will be writing for this pr.pdf
There are a couple of new methods that you will be writing for this pr.pdfThere are a couple of new methods that you will be writing for this pr.pdf
There are a couple of new methods that you will be writing for this pr.pdf
 
How do I fix this error - Exception in thread -main- java-lang-NullPoi.pdf
How do I fix this error - Exception in thread -main- java-lang-NullPoi.pdfHow do I fix this error - Exception in thread -main- java-lang-NullPoi.pdf
How do I fix this error - Exception in thread -main- java-lang-NullPoi.pdf
 
PROBLEM STATEMENTIn this assignment, you will complete DoubleEnde.pdf
PROBLEM STATEMENTIn this assignment, you will complete DoubleEnde.pdfPROBLEM STATEMENTIn this assignment, you will complete DoubleEnde.pdf
PROBLEM STATEMENTIn this assignment, you will complete DoubleEnde.pdf
 
Implement the additional 5 methods as indicated in the LinkedList fi.pdf
Implement the additional 5 methods as indicated in the LinkedList fi.pdfImplement the additional 5 methods as indicated in the LinkedList fi.pdf
Implement the additional 5 methods as indicated in the LinkedList fi.pdf
 
Need help finishing this doubly linked list code- Commented lines are.docx
Need help finishing this doubly linked list code- Commented lines are.docxNeed help finishing this doubly linked list code- Commented lines are.docx
Need help finishing this doubly linked list code- Commented lines are.docx
 
import java.util.ArrayList; import java.util.List; .pdf
import java.util.ArrayList; import java.util.List;   .pdfimport java.util.ArrayList; import java.util.List;   .pdf
import java.util.ArrayList; import java.util.List; .pdf
 
Write a program to implement below operations with both singly and d.pdf
Write a program to implement below operations with both singly and d.pdfWrite a program to implement below operations with both singly and d.pdf
Write a program to implement below operations with both singly and d.pdf
 
need this program in java please and thanks!NOTICE There are NO s.pdf
need this program in java please and thanks!NOTICE There are NO s.pdfneed this program in java please and thanks!NOTICE There are NO s.pdf
need this program in java please and thanks!NOTICE There are NO s.pdf
 
Creat Shape classes from scratch DETAILS You will create 3 shape cla.pdf
Creat Shape classes from scratch DETAILS You will create 3 shape cla.pdfCreat Shape classes from scratch DETAILS You will create 3 shape cla.pdf
Creat Shape classes from scratch DETAILS You will create 3 shape cla.pdf
 
Inspect the class declaration for a doubly-linked list node in Node-h-.pdf
Inspect the class declaration for a doubly-linked list node in Node-h-.pdfInspect the class declaration for a doubly-linked list node in Node-h-.pdf
Inspect the class declaration for a doubly-linked list node in Node-h-.pdf
 
package singlylinkedlist; public class Node { public String valu.pdf
package singlylinkedlist; public class Node { public String valu.pdfpackage singlylinkedlist; public class Node { public String valu.pdf
package singlylinkedlist; public class Node { public String valu.pdf
 

More from sumyad25

El entorno macro NO incluye (seleccione todo lo que corresponda).pdf
El entorno macro NO incluye (seleccione todo lo que corresponda).pdfEl entorno macro NO incluye (seleccione todo lo que corresponda).pdf
El entorno macro NO incluye (seleccione todo lo que corresponda).pdfsumyad25
 
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdfEl auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdfsumyad25
 
El 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdf
El 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdfEl 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdf
El 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdfsumyad25
 
El 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdf
El 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdfEl 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdf
El 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdfsumyad25
 
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdfEjemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdfsumyad25
 
Effective communication requires a clear understanding of the object.pdf
Effective communication requires a clear understanding of the object.pdfEffective communication requires a clear understanding of the object.pdf
Effective communication requires a clear understanding of the object.pdfsumyad25
 
Economic situation The economy is suffering from an unemployment p.pdf
Economic situation  The economy is suffering from an unemployment p.pdfEconomic situation  The economy is suffering from an unemployment p.pdf
Economic situation The economy is suffering from an unemployment p.pdfsumyad25
 
Easy Company, a corporation, is considering a variety of equity fina.pdf
Easy Company, a corporation, is considering a variety of equity fina.pdfEasy Company, a corporation, is considering a variety of equity fina.pdf
Easy Company, a corporation, is considering a variety of equity fina.pdfsumyad25
 
Each DQ post must contain at least one citation from a source in sup.pdf
Each DQ post must contain at least one citation from a source in sup.pdfEach DQ post must contain at least one citation from a source in sup.pdf
Each DQ post must contain at least one citation from a source in sup.pdfsumyad25
 
Duygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdf
Duygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdfDuygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdf
Duygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdfsumyad25
 
Durum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdf
Durum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdfDurum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdf
Durum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdfsumyad25
 
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdfDwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdfsumyad25
 
During the month of June, Ace Incorporated purchased goods from two .pdf
During the month of June, Ace Incorporated purchased goods from two .pdfDuring the month of June, Ace Incorporated purchased goods from two .pdf
During the month of June, Ace Incorporated purchased goods from two .pdfsumyad25
 
Durante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdf
Durante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdfDurante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdf
Durante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdfsumyad25
 
Dukane Company expects to produce 1.2 million units of product XX in.pdf
Dukane Company expects to produce 1.2 million units of product XX in.pdfDukane Company expects to produce 1.2 million units of product XX in.pdf
Dukane Company expects to produce 1.2 million units of product XX in.pdfsumyad25
 
Doru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdf
Doru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdfDoru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdf
Doru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdfsumyad25
 
Drop down options DECREASE or INCREASE The graph below is associate.pdf
Drop down options DECREASE or INCREASE The graph below is associate.pdfDrop down options DECREASE or INCREASE The graph below is associate.pdf
Drop down options DECREASE or INCREASE The graph below is associate.pdfsumyad25
 
DRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdf
DRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdfDRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdf
DRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdfsumyad25
 
Dmitri has saved $30 per week to buy a preowned gaming console. He c.pdf
Dmitri has saved $30 per week to buy a preowned gaming console. He c.pdfDmitri has saved $30 per week to buy a preowned gaming console. He c.pdf
Dmitri has saved $30 per week to buy a preowned gaming console. He c.pdfsumyad25
 
Draw particle trajectories representing the transformation of the ye.pdf
Draw particle trajectories representing the transformation of the ye.pdfDraw particle trajectories representing the transformation of the ye.pdf
Draw particle trajectories representing the transformation of the ye.pdfsumyad25
 

More from sumyad25 (20)

El entorno macro NO incluye (seleccione todo lo que corresponda).pdf
El entorno macro NO incluye (seleccione todo lo que corresponda).pdfEl entorno macro NO incluye (seleccione todo lo que corresponda).pdf
El entorno macro NO incluye (seleccione todo lo que corresponda).pdf
 
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdfEl auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
 
El 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdf
El 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdfEl 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdf
El 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdf
 
El 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdf
El 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdfEl 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdf
El 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdf
 
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdfEjemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
 
Effective communication requires a clear understanding of the object.pdf
Effective communication requires a clear understanding of the object.pdfEffective communication requires a clear understanding of the object.pdf
Effective communication requires a clear understanding of the object.pdf
 
Economic situation The economy is suffering from an unemployment p.pdf
Economic situation  The economy is suffering from an unemployment p.pdfEconomic situation  The economy is suffering from an unemployment p.pdf
Economic situation The economy is suffering from an unemployment p.pdf
 
Easy Company, a corporation, is considering a variety of equity fina.pdf
Easy Company, a corporation, is considering a variety of equity fina.pdfEasy Company, a corporation, is considering a variety of equity fina.pdf
Easy Company, a corporation, is considering a variety of equity fina.pdf
 
Each DQ post must contain at least one citation from a source in sup.pdf
Each DQ post must contain at least one citation from a source in sup.pdfEach DQ post must contain at least one citation from a source in sup.pdf
Each DQ post must contain at least one citation from a source in sup.pdf
 
Duygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdf
Duygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdfDuygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdf
Duygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdf
 
Durum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdf
Durum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdfDurum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdf
Durum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdf
 
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdfDwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
 
During the month of June, Ace Incorporated purchased goods from two .pdf
During the month of June, Ace Incorporated purchased goods from two .pdfDuring the month of June, Ace Incorporated purchased goods from two .pdf
During the month of June, Ace Incorporated purchased goods from two .pdf
 
Durante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdf
Durante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdfDurante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdf
Durante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdf
 
Dukane Company expects to produce 1.2 million units of product XX in.pdf
Dukane Company expects to produce 1.2 million units of product XX in.pdfDukane Company expects to produce 1.2 million units of product XX in.pdf
Dukane Company expects to produce 1.2 million units of product XX in.pdf
 
Doru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdf
Doru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdfDoru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdf
Doru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdf
 
Drop down options DECREASE or INCREASE The graph below is associate.pdf
Drop down options DECREASE or INCREASE The graph below is associate.pdfDrop down options DECREASE or INCREASE The graph below is associate.pdf
Drop down options DECREASE or INCREASE The graph below is associate.pdf
 
DRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdf
DRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdfDRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdf
DRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdf
 
Dmitri has saved $30 per week to buy a preowned gaming console. He c.pdf
Dmitri has saved $30 per week to buy a preowned gaming console. He c.pdfDmitri has saved $30 per week to buy a preowned gaming console. He c.pdf
Dmitri has saved $30 per week to buy a preowned gaming console. He c.pdf
 
Draw particle trajectories representing the transformation of the ye.pdf
Draw particle trajectories representing the transformation of the ye.pdfDraw particle trajectories representing the transformation of the ye.pdf
Draw particle trajectories representing the transformation of the ye.pdf
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 

Recently uploaded (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 

Design a program named SortedNameList.java, which implements a list .pdf

  • 1. Design a program named SortedNameList.java, which implements a list structure with linked list node (LLNode.java). Your SortedNameList ADT should have the following methods: Template: public class SortedNameList{ LLNode head; public SortedNameList(){ head=null; } public LLNode getHead(){ return head; } public boolean isEmpty(){ //return true if the list is empty, otherwise true /* Type your code here. */ } public void add(Name name){ //add name to the list, after this operation, the list should maintain sorted in ascending order /* Type your code here. */ } public void add(LLNode node){ //overloaded method: add node to the list, after this operation, the list should maintain sorted in ascending order /* Type your code here. */ } public int size(){ //return the number of nodes in the list /* Type your code here. */
  • 2. return 0; // replace with yours } public boolean isFull(){ return false; } public int search(Name name){ //return index of the name (the first occurrence) in the list, return -1 if not found /* Type your code here. */ return -10; // replace with yours } public LLNode get(int index){ // return the LLNode object at the specified index location, for invalid index, return null /* Type your code here. */ return new LLNode(new Name("a","b"), null); //replace with yours } public void remove(int index){ //Remove node at the specified index location if valid. /* Type your code here. */ } public void remove(Name name){ //remove all occurences of name - please refer to Name class for details /* Type your code here. */ } public void removeAll(){ //remove all nodes } }