SlideShare a Scribd company logo
This assignment uses a rubric of 200 points. It focuses on Object Oriented design using Classes
and Objects in Java. Write a class that implements a custom doubly-linked list that accepts a
parametric (generic) parameter of any plain-old-java-object. This class should be usable like the
following: < Assuming we have a type named "Animal"> DoublyLinkedList> animals = new
DoublyLinkedList < Animal >0; This class should support the following methods: void add () - adds
to the end of the list void remove() - removes the head of the list void remove(int x) - removes
element at index X from the list void clear() - removes all elements of the list int size( - returns the
number of elements of the list T[] toArrayO -returns an array of the elements in your list T
element() - retrieves the head of the list (but does not remove it) T element(int x ) - retrieve
element at position x void set(int x,Tt ) - sets element at position x to value t Note: this class may
NOT use any built in data structures other than primitive/basic Java types. In other words, don't
just wrap LinkedList. Make your own. Important Note: Presizing the underlying types will result in
an automatic ZERO for the assignment. To review how to write classes in Java please refer to the
following link: Introduction to Classes and Objects in Java Note: If the data file has string or
character, your program should handle it through input validation.

More Related Content

Similar to This assignment uses a rubric of 200 points It focuses on O.pdf

Can you help me by answering this- The following function defined in c.pdf
Can you help me by answering this- The following function defined in c.pdfCan you help me by answering this- The following function defined in c.pdf
Can you help me by answering this- The following function defined in c.pdf
SeanIC4Jamesn
 
Array list (java platform se 8 )
Array list (java platform se 8 )Array list (java platform se 8 )
Array list (java platform se 8 )
charan kumar
 
Collections Api - Java
Collections Api - JavaCollections Api - Java
Collections Api - Java
Drishti Bhalla
 
I need help with this code working Create another project and add yo.pdf
I need help with this code working Create another project and add yo.pdfI need help with this code working Create another project and add yo.pdf
I need help with this code working Create another project and add yo.pdf
fantoosh1
 
Java collections
Java collectionsJava collections
Java collections
Hamid Ghorbani
 
Collection and framework
Collection and frameworkCollection and framework
Collection and framework
SARAVANAN GOPALAKRISHNAN
 
Java.util
Java.utilJava.util
Java.util
Ramakrishna kapa
 
Collections lecture 35 40
Collections lecture 35 40Collections lecture 35 40
Collections lecture 35 40
bhawna sharma
 
List in Python
List in PythonList in Python
List in Python
Siddique Ibrahim
 
07 java collection
07 java collection07 java collection
07 java collection
Abhishek Khune
 
Aj unit2 notesjavadatastructures
Aj unit2 notesjavadatastructuresAj unit2 notesjavadatastructures
Aj unit2 notesjavadatastructures
Arthik Daniel
 
Linked list (java platform se 8 )
Linked list (java platform se 8 )Linked list (java platform se 8 )
Linked list (java platform se 8 )
charan kumar
 
1 list datastructures
1 list datastructures1 list datastructures
1 list datastructures
Nguync91368
 
Built-in Data Structures in python 3.pdf
Built-in Data Structures in python 3.pdfBuilt-in Data Structures in python 3.pdf
Built-in Data Structures in python 3.pdf
alivaisi1
 
Python Sets_Dictionary.pptx
Python Sets_Dictionary.pptxPython Sets_Dictionary.pptx
Python Sets_Dictionary.pptx
M Vishnuvardhan Reddy
 

Similar to This assignment uses a rubric of 200 points It focuses on O.pdf (20)

16 containers
16   containers16   containers
16 containers
 
Can you help me by answering this- The following function defined in c.pdf
Can you help me by answering this- The following function defined in c.pdfCan you help me by answering this- The following function defined in c.pdf
Can you help me by answering this- The following function defined in c.pdf
 
Presentation1
Presentation1Presentation1
Presentation1
 
Array list (java platform se 8 )
Array list (java platform se 8 )Array list (java platform se 8 )
Array list (java platform se 8 )
 
Collections Api - Java
Collections Api - JavaCollections Api - Java
Collections Api - Java
 
I need help with this code working Create another project and add yo.pdf
I need help with this code working Create another project and add yo.pdfI need help with this code working Create another project and add yo.pdf
I need help with this code working Create another project and add yo.pdf
 
Java collections
Java collectionsJava collections
Java collections
 
Collection and framework
Collection and frameworkCollection and framework
Collection and framework
 
Java.util
Java.utilJava.util
Java.util
 
Advanced core java
Advanced core javaAdvanced core java
Advanced core java
 
Collections lecture 35 40
Collections lecture 35 40Collections lecture 35 40
Collections lecture 35 40
 
List in Python
List in PythonList in Python
List in Python
 
07 java collection
07 java collection07 java collection
07 java collection
 
Aj unit2 notesjavadatastructures
Aj unit2 notesjavadatastructuresAj unit2 notesjavadatastructures
Aj unit2 notesjavadatastructures
 
Linked list (java platform se 8 )
Linked list (java platform se 8 )Linked list (java platform se 8 )
Linked list (java platform se 8 )
 
Array properties
Array propertiesArray properties
Array properties
 
1 list datastructures
1 list datastructures1 list datastructures
1 list datastructures
 
Data structures
Data structures Data structures
Data structures
 
Built-in Data Structures in python 3.pdf
Built-in Data Structures in python 3.pdfBuilt-in Data Structures in python 3.pdf
Built-in Data Structures in python 3.pdf
 
Python Sets_Dictionary.pptx
Python Sets_Dictionary.pptxPython Sets_Dictionary.pptx
Python Sets_Dictionary.pptx
 

More from adislifestyle

Theory of Planetary System Formation The mass of the presol.pdf
Theory of Planetary System Formation The mass of the presol.pdfTheory of Planetary System Formation The mass of the presol.pdf
Theory of Planetary System Formation The mass of the presol.pdf
adislifestyle
 
The Weibull distribution has probability density function f.pdf
The Weibull distribution has probability density function f.pdfThe Weibull distribution has probability density function f.pdf
The Weibull distribution has probability density function f.pdf
adislifestyle
 
The WD40 Company has been presented with an investment oppor.pdf
The WD40 Company has been presented with an investment oppor.pdfThe WD40 Company has been presented with an investment oppor.pdf
The WD40 Company has been presented with an investment oppor.pdf
adislifestyle
 
The world Bank records the prevalence of HIV in countries ar.pdf
The world Bank records the prevalence of HIV in countries ar.pdfThe world Bank records the prevalence of HIV in countries ar.pdf
The world Bank records the prevalence of HIV in countries ar.pdf
adislifestyle
 
The waiting times between a subway departure schedule and th.pdf
The waiting times between a subway departure schedule and th.pdfThe waiting times between a subway departure schedule and th.pdf
The waiting times between a subway departure schedule and th.pdf
adislifestyle
 
theme 6 hygiene and ecology answer all questions Theme N6 .pdf
theme 6 hygiene and ecology answer all questions  Theme N6 .pdftheme 6 hygiene and ecology answer all questions  Theme N6 .pdf
theme 6 hygiene and ecology answer all questions Theme N6 .pdf
adislifestyle
 
there is no more info for this question other than what is p.pdf
there is no more info for this question other than what is p.pdfthere is no more info for this question other than what is p.pdf
there is no more info for this question other than what is p.pdf
adislifestyle
 
This image shows an internal view of the kidneys What is th.pdf
This image shows an internal view of the kidneys What is th.pdfThis image shows an internal view of the kidneys What is th.pdf
This image shows an internal view of the kidneys What is th.pdf
adislifestyle
 
This face recognition attendance system code for face recogn.pdf
This face recognition attendance system code for face recogn.pdfThis face recognition attendance system code for face recogn.pdf
This face recognition attendance system code for face recogn.pdf
adislifestyle
 
This exercise involves the use of an unrealistically small p.pdf
This exercise involves the use of an unrealistically small p.pdfThis exercise involves the use of an unrealistically small p.pdf
This exercise involves the use of an unrealistically small p.pdf
adislifestyle
 
This includes South African platforms for crypto assets br.pdf
This includes South African platforms for crypto assets br.pdfThis includes South African platforms for crypto assets br.pdf
This includes South African platforms for crypto assets br.pdf
adislifestyle
 
This exercise is to be discussed in class Prepare an Emer.pdf
This exercise is to be discussed in class  Prepare an Emer.pdfThis exercise is to be discussed in class  Prepare an Emer.pdf
This exercise is to be discussed in class Prepare an Emer.pdf
adislifestyle
 
This exercise is based on Laraba Imane et al Pseudoflow.pdf
This exercise is based on Laraba Imane et al Pseudoflow.pdfThis exercise is based on Laraba Imane et al Pseudoflow.pdf
This exercise is based on Laraba Imane et al Pseudoflow.pdf
adislifestyle
 
This discussion has four parts In your own words and in no .pdf
This discussion has four parts In your own words and in no .pdfThis discussion has four parts In your own words and in no .pdf
This discussion has four parts In your own words and in no .pdf
adislifestyle
 
This diagram shows that water is added to the aquiter by pre.pdf
This diagram shows that water is added to the aquiter by pre.pdfThis diagram shows that water is added to the aquiter by pre.pdf
This diagram shows that water is added to the aquiter by pre.pdf
adislifestyle
 
This data is from a sample Calculate the mean standard dev.pdf
This data is from a sample Calculate the mean standard dev.pdfThis data is from a sample Calculate the mean standard dev.pdf
This data is from a sample Calculate the mean standard dev.pdf
adislifestyle
 
This discussion requires some significant research on your p.pdf
This discussion requires some significant research on your p.pdfThis discussion requires some significant research on your p.pdf
This discussion requires some significant research on your p.pdf
adislifestyle
 
This code works only for palindrome If NOT a palindrome the.pdf
This code works only for palindrome If NOT a palindrome the.pdfThis code works only for palindrome If NOT a palindrome the.pdf
This code works only for palindrome If NOT a palindrome the.pdf
adislifestyle
 
This assignment will have two circuits A main circuit that .pdf
This assignment will have two circuits A main circuit that .pdfThis assignment will have two circuits A main circuit that .pdf
This assignment will have two circuits A main circuit that .pdf
adislifestyle
 
This assignment is about another calculator class this time.pdf
This assignment is about another calculator class this time.pdfThis assignment is about another calculator class this time.pdf
This assignment is about another calculator class this time.pdf
adislifestyle
 

More from adislifestyle (20)

Theory of Planetary System Formation The mass of the presol.pdf
Theory of Planetary System Formation The mass of the presol.pdfTheory of Planetary System Formation The mass of the presol.pdf
Theory of Planetary System Formation The mass of the presol.pdf
 
The Weibull distribution has probability density function f.pdf
The Weibull distribution has probability density function f.pdfThe Weibull distribution has probability density function f.pdf
The Weibull distribution has probability density function f.pdf
 
The WD40 Company has been presented with an investment oppor.pdf
The WD40 Company has been presented with an investment oppor.pdfThe WD40 Company has been presented with an investment oppor.pdf
The WD40 Company has been presented with an investment oppor.pdf
 
The world Bank records the prevalence of HIV in countries ar.pdf
The world Bank records the prevalence of HIV in countries ar.pdfThe world Bank records the prevalence of HIV in countries ar.pdf
The world Bank records the prevalence of HIV in countries ar.pdf
 
The waiting times between a subway departure schedule and th.pdf
The waiting times between a subway departure schedule and th.pdfThe waiting times between a subway departure schedule and th.pdf
The waiting times between a subway departure schedule and th.pdf
 
theme 6 hygiene and ecology answer all questions Theme N6 .pdf
theme 6 hygiene and ecology answer all questions  Theme N6 .pdftheme 6 hygiene and ecology answer all questions  Theme N6 .pdf
theme 6 hygiene and ecology answer all questions Theme N6 .pdf
 
there is no more info for this question other than what is p.pdf
there is no more info for this question other than what is p.pdfthere is no more info for this question other than what is p.pdf
there is no more info for this question other than what is p.pdf
 
This image shows an internal view of the kidneys What is th.pdf
This image shows an internal view of the kidneys What is th.pdfThis image shows an internal view of the kidneys What is th.pdf
This image shows an internal view of the kidneys What is th.pdf
 
This face recognition attendance system code for face recogn.pdf
This face recognition attendance system code for face recogn.pdfThis face recognition attendance system code for face recogn.pdf
This face recognition attendance system code for face recogn.pdf
 
This exercise involves the use of an unrealistically small p.pdf
This exercise involves the use of an unrealistically small p.pdfThis exercise involves the use of an unrealistically small p.pdf
This exercise involves the use of an unrealistically small p.pdf
 
This includes South African platforms for crypto assets br.pdf
This includes South African platforms for crypto assets br.pdfThis includes South African platforms for crypto assets br.pdf
This includes South African platforms for crypto assets br.pdf
 
This exercise is to be discussed in class Prepare an Emer.pdf
This exercise is to be discussed in class  Prepare an Emer.pdfThis exercise is to be discussed in class  Prepare an Emer.pdf
This exercise is to be discussed in class Prepare an Emer.pdf
 
This exercise is based on Laraba Imane et al Pseudoflow.pdf
This exercise is based on Laraba Imane et al Pseudoflow.pdfThis exercise is based on Laraba Imane et al Pseudoflow.pdf
This exercise is based on Laraba Imane et al Pseudoflow.pdf
 
This discussion has four parts In your own words and in no .pdf
This discussion has four parts In your own words and in no .pdfThis discussion has four parts In your own words and in no .pdf
This discussion has four parts In your own words and in no .pdf
 
This diagram shows that water is added to the aquiter by pre.pdf
This diagram shows that water is added to the aquiter by pre.pdfThis diagram shows that water is added to the aquiter by pre.pdf
This diagram shows that water is added to the aquiter by pre.pdf
 
This data is from a sample Calculate the mean standard dev.pdf
This data is from a sample Calculate the mean standard dev.pdfThis data is from a sample Calculate the mean standard dev.pdf
This data is from a sample Calculate the mean standard dev.pdf
 
This discussion requires some significant research on your p.pdf
This discussion requires some significant research on your p.pdfThis discussion requires some significant research on your p.pdf
This discussion requires some significant research on your p.pdf
 
This code works only for palindrome If NOT a palindrome the.pdf
This code works only for palindrome If NOT a palindrome the.pdfThis code works only for palindrome If NOT a palindrome the.pdf
This code works only for palindrome If NOT a palindrome the.pdf
 
This assignment will have two circuits A main circuit that .pdf
This assignment will have two circuits A main circuit that .pdfThis assignment will have two circuits A main circuit that .pdf
This assignment will have two circuits A main circuit that .pdf
 
This assignment is about another calculator class this time.pdf
This assignment is about another calculator class this time.pdfThis assignment is about another calculator class this time.pdf
This assignment is about another calculator class this time.pdf
 

Recently uploaded

Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 

Recently uploaded (20)

Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 

This assignment uses a rubric of 200 points It focuses on O.pdf

  • 1. This assignment uses a rubric of 200 points. It focuses on Object Oriented design using Classes and Objects in Java. Write a class that implements a custom doubly-linked list that accepts a parametric (generic) parameter of any plain-old-java-object. This class should be usable like the following: < Assuming we have a type named "Animal"> DoublyLinkedList> animals = new DoublyLinkedList < Animal >0; This class should support the following methods: void add () - adds to the end of the list void remove() - removes the head of the list void remove(int x) - removes element at index X from the list void clear() - removes all elements of the list int size( - returns the number of elements of the list T[] toArrayO -returns an array of the elements in your list T element() - retrieves the head of the list (but does not remove it) T element(int x ) - retrieve element at position x void set(int x,Tt ) - sets element at position x to value t Note: this class may NOT use any built in data structures other than primitive/basic Java types. In other words, don't just wrap LinkedList. Make your own. Important Note: Presizing the underlying types will result in an automatic ZERO for the assignment. To review how to write classes in Java please refer to the following link: Introduction to Classes and Objects in Java Note: If the data file has string or character, your program should handle it through input validation.