SlideShare a Scribd company logo
1 of 2
Download to read offline
Note: Can someone help me with the public boolean isEmpty(), public boolean contains(Object
o), public int indexOf(Object o) and public E get(int index)methods using abstract List. package
edu.ust.cisc; import java.util.Iterator; public abstract class CiscAbstractList implements CiscList
{ /** * Returns the number of elements in this list. * * @return the number of elements in this
list */ @Override public int size() { int size = 0; Iterator itr = iterator(); while(itr.hasNext()) {
itr.next(); size++; } return size; } /** * Returns {@code true} if this list contains no elements. *
* @return {@code true} if this list contains no elements */ @Override public boolean isEmpty()
{ return false; } /** * Returns {@code true} if this list contains the specified element (compared
using the {@code equals} method). * * @param o element whose presence in this list is to be
tested * @return {@code true} if this list contains the specified element * @throws
NullPointerException if the specified element is null */ @Override public boolean
contains(Object o) { return false; } /** * Returns the index of the first occurrence of the specified
element in this list, or -1 if this list does not * contain the element (compared using the {@code
equals} method). * * @param o element to search for * @return the index of the first occurrence
of the specified element in this list, or -1 if this list does not * contain the element * @throws
NullPointerException if the specified element is null */ @Override public int indexOf(Object o)
{ return 0; } /** * Removes all of the elements from this list. The list will be empty after this call
returns. */ @Override public abstract void clear(); /** * Returns the element at the specified
position in this list. * * @param index index of the element to return * @return the element at
the specified position in this list * @throws IndexOutOfBoundsException if the index is out of
range */ @Override public E get(int index) { return null; } /** * Appends the specified element
to the end of this list. * *
Lists may place the specified element at arbitrary locations if desired. In particular, an ordered
list will * insert the specified element at its sorted location. List classes should clearly specify in
their documentation * how elements will be added to the list if different from the default
behavior (end of this list). * * @param e element to be appended to this list * @return {@code
true} * @throws NullPointerException if the specified element is null */ @Override public
boolean add(E e) { return false; } /** * Replaces the element at the specified position in this list
with the specified element (optional operation). * * @param index index of the element to
replace * @param element element to be stored at the specified position * @return the element
previously at the specified position * @throws UnsupportedOperationException if the {@code
set} operation is not supported by this list * @throws NullPointerException if the specified
element is null * @throws IndexOutOfBoundsException if the index is out of range */
@Override public E set(int index, E element) { return null; } /** * Returns an array containing
all of the elements in this list in proper sequence (from first to last element). * *
The returned array will be "safe" in that no references to it are maintained by this list. (In other
words, * this method must allocate a new array even if this list is backed by an array). The caller
is thus free to modify * the returned array. * * @return an array containing all of the elements in
this list in proper sequence */ @Override public Object[] toArray() { return new Object[0]; } /**
* Removes the first occurrence of the specified element from this list, if it is present. If this list
does not * contain the element, it is unchanged. Returns {@code true} if this list contained the
specified element. * * @param o element to be removed from this list, if present * @return
{@code true} if this list contained the specified element * @throws NullPointerException if the
specified element is null */ @Override public boolean remove(Object o) { return false; } /** *
Removes the element at the specified position in this list. Shifts any subsequent elements to the
left * (subtracts one from their indices). Returns the element that was removed from the list. * *
@param index the index of the element to be removed * @return the element previously at the
specified position * @throws IndexOutOfBoundsException if the index is out of range */
@Override public E remove(int index) { return null; } /** * Inserts the specified element at the
specified position in this list (optional operation). Shifts the element * currently at that position
(if any) and any subsequent elements to the right (adds one to their indices). * * @param index
index at which the specified element is to be inserted * @param element element to be inserted *
@throws UnsupportedOperationException if the {@code add} operation is not supported by this
list * @throws NullPointerException if the specified element is null * @throws
IndexOutOfBoundsException if the index is out of range */ @Override public void add(int
index, E element) { } /** * Appends all elements in the specified list to the end of this list, in the
order that they are returned by the * specified list's iterator (optional operation). * * @param c
list containing elements to be added to this list * @return {@code true} if this list changed as a
result of the call * @throws UnsupportedOperationException if the {@code addAll} operation is
not supported by this list * @throws NullPointerException if the specified list is null */
@Override public boolean addAll(CiscList extends E> c) { return false; } /** * Returns an
iterator over the elements in this list in proper sequence. * * @return an iterator over the
elements in this list in proper sequence */ @Override public Iterator iterator() { return null; } /**
* Returns a string representation of this list. This string should consist of a comma separated list
of values * contained in this list, in order, surrounded by square brackets (examples: [3, 6, 7] and
[]). * * @return a string representation of this list */ @Override public String toString() { return
null; } }

More Related Content

Similar to Note- Can someone help me with the public boolean isEmpty()- public bo.pdf

STAGE 2 The Methods 65 points Implement all the methods t.pdf
STAGE 2 The Methods 65 points Implement all the methods t.pdfSTAGE 2 The Methods 65 points Implement all the methods t.pdf
STAGE 2 The Methods 65 points Implement all the methods t.pdfbabitasingh698417
 
A popular implementation of List is ArrayList- Look up how to instanti.pdf
A popular implementation of List is ArrayList- Look up how to instanti.pdfA popular implementation of List is ArrayList- Look up how to instanti.pdf
A popular implementation of List is ArrayList- Look up how to instanti.pdfarsarees
 
we using java dynamicArray package modellinearpub imp.pdf
we using java dynamicArray    package modellinearpub   imp.pdfwe using java dynamicArray    package modellinearpub   imp.pdf
we using java dynamicArray package modellinearpub imp.pdfadityagupta3310
 
we using java code DynamicArrayjava Replace all .pdf
we using java code   DynamicArrayjava   Replace all .pdfwe using java code   DynamicArrayjava   Replace all .pdf
we using java code DynamicArrayjava Replace all .pdfgudduraza28
 
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdf
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdfImplement the interface you wrote for Lab B (EntryWayListInterface)..pdf
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdfrishabjain5053
 
package linkedLists- import java-util-Iterator- --- A class representi.pdf
package linkedLists- import java-util-Iterator- --- A class representi.pdfpackage linkedLists- import java-util-Iterator- --- A class representi.pdf
package linkedLists- import java-util-Iterator- --- A class representi.pdfarcellzone
 
import java.util.Iterator; import java.util.NoSuchElementException; .pdf
  import java.util.Iterator; import java.util.NoSuchElementException; .pdf  import java.util.Iterator; import java.util.NoSuchElementException; .pdf
import java.util.Iterator; import java.util.NoSuchElementException; .pdfdeepakangel
 
package ADTs public interface CollectionADTltTgt .pdf
package ADTs public interface CollectionADTltTgt      .pdfpackage ADTs public interface CollectionADTltTgt      .pdf
package ADTs public interface CollectionADTltTgt .pdfsyedabdul78662
 
Lecture 18Dynamic Data Structures and Generics (II).docx
Lecture 18Dynamic Data Structures and Generics (II).docxLecture 18Dynamic Data Structures and Generics (II).docx
Lecture 18Dynamic Data Structures and Generics (II).docxSHIVA101531
 
please read below it will tell you what we are using L.pdf
please read below it will tell you what we are using   L.pdfplease read below it will tell you what we are using   L.pdf
please read below it will tell you what we are using L.pdfankit11134
 
please read the steps below and it will tell you what we usi.pdf
please read the steps below and it will tell you what we usi.pdfplease read the steps below and it will tell you what we usi.pdf
please read the steps below and it will tell you what we usi.pdfaggarwalopticalsco
 
public class MyLinkedListltE extends ComparableltEgtg.pdf
public class MyLinkedListltE extends ComparableltEgtg.pdfpublic class MyLinkedListltE extends ComparableltEgtg.pdf
public class MyLinkedListltE extends ComparableltEgtg.pdfaccostinternational
 
Below is a given ArrayList class and Main class Your Dreams Our Mission/tuto...
Below is a given ArrayList class and Main class  Your Dreams Our Mission/tuto...Below is a given ArrayList class and Main class  Your Dreams Our Mission/tuto...
Below is a given ArrayList class and Main class Your Dreams Our Mission/tuto...davidwarner122
 
1 The goal is to implement DataStructuresArrayStack accor.pdf
1 The goal is to implement DataStructuresArrayStack accor.pdf1 The goal is to implement DataStructuresArrayStack accor.pdf
1 The goal is to implement DataStructuresArrayStack accor.pdfsaradashata
 
Please do parts labeled TODO LinkedList.java Replace.pdf
Please do parts labeled TODO LinkedList.java Replace.pdfPlease do parts labeled TODO LinkedList.java Replace.pdf
Please do parts labeled TODO LinkedList.java Replace.pdfaioils
 
Given below is the completed implementation of MyLinkedList class. O.pdf
Given below is the completed implementation of MyLinkedList class. O.pdfGiven below is the completed implementation of MyLinkedList class. O.pdf
Given below is the completed implementation of MyLinkedList class. O.pdfinfo430661
 
The LinkedList1 class implements a Linked list. class.pdf
The LinkedList1 class implements a Linked list. class.pdfThe LinkedList1 class implements a Linked list. class.pdf
The LinkedList1 class implements a Linked list. class.pdfmalavshah9013
 
Java Foundations StackADT-java --- - Defines the interface to a stack.docx
Java Foundations StackADT-java ---  - Defines the interface to a stack.docxJava Foundations StackADT-java ---  - Defines the interface to a stack.docx
Java Foundations StackADT-java --- - Defines the interface to a stack.docxVictorXUQGloverl
 
helpInstructionsAdd the function max as an abstract function to .pdf
helpInstructionsAdd the function max as an abstract function to .pdfhelpInstructionsAdd the function max as an abstract function to .pdf
helpInstructionsAdd the function max as an abstract function to .pdfalmonardfans
 
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
 

Similar to Note- Can someone help me with the public boolean isEmpty()- public bo.pdf (20)

STAGE 2 The Methods 65 points Implement all the methods t.pdf
STAGE 2 The Methods 65 points Implement all the methods t.pdfSTAGE 2 The Methods 65 points Implement all the methods t.pdf
STAGE 2 The Methods 65 points Implement all the methods t.pdf
 
A popular implementation of List is ArrayList- Look up how to instanti.pdf
A popular implementation of List is ArrayList- Look up how to instanti.pdfA popular implementation of List is ArrayList- Look up how to instanti.pdf
A popular implementation of List is ArrayList- Look up how to instanti.pdf
 
we using java dynamicArray package modellinearpub imp.pdf
we using java dynamicArray    package modellinearpub   imp.pdfwe using java dynamicArray    package modellinearpub   imp.pdf
we using java dynamicArray package modellinearpub imp.pdf
 
we using java code DynamicArrayjava Replace all .pdf
we using java code   DynamicArrayjava   Replace all .pdfwe using java code   DynamicArrayjava   Replace all .pdf
we using java code DynamicArrayjava Replace all .pdf
 
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdf
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdfImplement the interface you wrote for Lab B (EntryWayListInterface)..pdf
Implement the interface you wrote for Lab B (EntryWayListInterface)..pdf
 
package linkedLists- import java-util-Iterator- --- A class representi.pdf
package linkedLists- import java-util-Iterator- --- A class representi.pdfpackage linkedLists- import java-util-Iterator- --- A class representi.pdf
package linkedLists- import java-util-Iterator- --- A class representi.pdf
 
import java.util.Iterator; import java.util.NoSuchElementException; .pdf
  import java.util.Iterator; import java.util.NoSuchElementException; .pdf  import java.util.Iterator; import java.util.NoSuchElementException; .pdf
import java.util.Iterator; import java.util.NoSuchElementException; .pdf
 
package ADTs public interface CollectionADTltTgt .pdf
package ADTs public interface CollectionADTltTgt      .pdfpackage ADTs public interface CollectionADTltTgt      .pdf
package ADTs public interface CollectionADTltTgt .pdf
 
Lecture 18Dynamic Data Structures and Generics (II).docx
Lecture 18Dynamic Data Structures and Generics (II).docxLecture 18Dynamic Data Structures and Generics (II).docx
Lecture 18Dynamic Data Structures and Generics (II).docx
 
please read below it will tell you what we are using L.pdf
please read below it will tell you what we are using   L.pdfplease read below it will tell you what we are using   L.pdf
please read below it will tell you what we are using L.pdf
 
please read the steps below and it will tell you what we usi.pdf
please read the steps below and it will tell you what we usi.pdfplease read the steps below and it will tell you what we usi.pdf
please read the steps below and it will tell you what we usi.pdf
 
public class MyLinkedListltE extends ComparableltEgtg.pdf
public class MyLinkedListltE extends ComparableltEgtg.pdfpublic class MyLinkedListltE extends ComparableltEgtg.pdf
public class MyLinkedListltE extends ComparableltEgtg.pdf
 
Below is a given ArrayList class and Main class Your Dreams Our Mission/tuto...
Below is a given ArrayList class and Main class  Your Dreams Our Mission/tuto...Below is a given ArrayList class and Main class  Your Dreams Our Mission/tuto...
Below is a given ArrayList class and Main class Your Dreams Our Mission/tuto...
 
1 The goal is to implement DataStructuresArrayStack accor.pdf
1 The goal is to implement DataStructuresArrayStack accor.pdf1 The goal is to implement DataStructuresArrayStack accor.pdf
1 The goal is to implement DataStructuresArrayStack accor.pdf
 
Please do parts labeled TODO LinkedList.java Replace.pdf
Please do parts labeled TODO LinkedList.java Replace.pdfPlease do parts labeled TODO LinkedList.java Replace.pdf
Please do parts labeled TODO LinkedList.java Replace.pdf
 
Given below is the completed implementation of MyLinkedList class. O.pdf
Given below is the completed implementation of MyLinkedList class. O.pdfGiven below is the completed implementation of MyLinkedList class. O.pdf
Given below is the completed implementation of MyLinkedList class. O.pdf
 
The LinkedList1 class implements a Linked list. class.pdf
The LinkedList1 class implements a Linked list. class.pdfThe LinkedList1 class implements a Linked list. class.pdf
The LinkedList1 class implements a Linked list. class.pdf
 
Java Foundations StackADT-java --- - Defines the interface to a stack.docx
Java Foundations StackADT-java ---  - Defines the interface to a stack.docxJava Foundations StackADT-java ---  - Defines the interface to a stack.docx
Java Foundations StackADT-java --- - Defines the interface to a stack.docx
 
helpInstructionsAdd the function max as an abstract function to .pdf
helpInstructionsAdd the function max as an abstract function to .pdfhelpInstructionsAdd the function max as an abstract function to .pdf
helpInstructionsAdd the function max as an abstract function to .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
 

More from Augstore

Note- Always keep track of your work- Wowza Corporation manufactures p.pdf
Note- Always keep track of your work- Wowza Corporation manufactures p.pdfNote- Always keep track of your work- Wowza Corporation manufactures p.pdf
Note- Always keep track of your work- Wowza Corporation manufactures p.pdfAugstore
 
Note- 1- There was no retirement of stock during the yoar- A- There wa.pdf
Note- 1- There was no retirement of stock during the yoar- A- There wa.pdfNote- 1- There was no retirement of stock during the yoar- A- There wa.pdf
Note- 1- There was no retirement of stock during the yoar- A- There wa.pdfAugstore
 
Note the image showing a series of batholiths on the landscape- How di.pdf
Note the image showing a series of batholiths on the landscape- How di.pdfNote the image showing a series of batholiths on the landscape- How di.pdf
Note the image showing a series of batholiths on the landscape- How di.pdfAugstore
 
note 2^R stand for w reversed (c) L3-{ww-wR-w is odd with 010 as the m.pdf
note 2^R stand for w reversed (c) L3-{ww-wR-w is odd with 010 as the m.pdfnote 2^R stand for w reversed (c) L3-{ww-wR-w is odd with 010 as the m.pdf
note 2^R stand for w reversed (c) L3-{ww-wR-w is odd with 010 as the m.pdfAugstore
 
Not yet answered Points out of 1-00 Flag question It seems kind of wei.pdf
Not yet answered Points out of 1-00 Flag question It seems kind of wei.pdfNot yet answered Points out of 1-00 Flag question It seems kind of wei.pdf
Not yet answered Points out of 1-00 Flag question It seems kind of wei.pdfAugstore
 
Not yet answered Points out of 1-00 Flag question Stephanie likes to p.pdf
Not yet answered Points out of 1-00 Flag question Stephanie likes to p.pdfNot yet answered Points out of 1-00 Flag question Stephanie likes to p.pdf
Not yet answered Points out of 1-00 Flag question Stephanie likes to p.pdfAugstore
 
Not able to run quiz question -- Define an array of objects with qu.pdf
Not able to run quiz question    -- Define an array of objects with qu.pdfNot able to run quiz question    -- Define an array of objects with qu.pdf
Not able to run quiz question -- Define an array of objects with qu.pdfAugstore
 
Not for Profit class The non-profit is planned parenthood Discuss ho.pdf
Not for Profit class The non-profit is planned parenthood   Discuss ho.pdfNot for Profit class The non-profit is planned parenthood   Discuss ho.pdf
Not for Profit class The non-profit is planned parenthood Discuss ho.pdfAugstore
 
Not long ago- the Federal Communications Commission (FCC) implemented.pdf
Not long ago- the Federal Communications Commission (FCC) implemented.pdfNot long ago- the Federal Communications Commission (FCC) implemented.pdf
Not long ago- the Federal Communications Commission (FCC) implemented.pdfAugstore
 
Nonchalant Actron (NA) has a current dividend (D0) of $1-80- Dividends.pdf
Nonchalant Actron (NA) has a current dividend (D0) of $1-80- Dividends.pdfNonchalant Actron (NA) has a current dividend (D0) of $1-80- Dividends.pdf
Nonchalant Actron (NA) has a current dividend (D0) of $1-80- Dividends.pdfAugstore
 
Non-foliated metamorphic rocks generally are- composed of a few visibl.pdf
Non-foliated metamorphic rocks generally are- composed of a few visibl.pdfNon-foliated metamorphic rocks generally are- composed of a few visibl.pdf
Non-foliated metamorphic rocks generally are- composed of a few visibl.pdfAugstore
 
Non-financial reporting With the growth in non-financial reporting ove.pdf
Non-financial reporting With the growth in non-financial reporting ove.pdfNon-financial reporting With the growth in non-financial reporting ove.pdf
Non-financial reporting With the growth in non-financial reporting ove.pdfAugstore
 
Nominal GDP of Utopia was the highest in Real GDP of Utopia in 2016 is.pdf
Nominal GDP of Utopia was the highest in Real GDP of Utopia in 2016 is.pdfNominal GDP of Utopia was the highest in Real GDP of Utopia in 2016 is.pdf
Nominal GDP of Utopia was the highest in Real GDP of Utopia in 2016 is.pdfAugstore
 
Non-marine (live in water that is not seawater) diatoms are algae that.pdf
Non-marine (live in water that is not seawater) diatoms are algae that.pdfNon-marine (live in water that is not seawater) diatoms are algae that.pdf
Non-marine (live in water that is not seawater) diatoms are algae that.pdfAugstore
 
No outstanding checks and no deposits in transit were noted in August- (1).pdf
No outstanding checks and no deposits in transit were noted in August- (1).pdfNo outstanding checks and no deposits in transit were noted in August- (1).pdf
No outstanding checks and no deposits in transit were noted in August- (1).pdfAugstore
 
Nittany Company uses a periodic inventory system- At the end of the an.pdf
Nittany Company uses a periodic inventory system- At the end of the an.pdfNittany Company uses a periodic inventory system- At the end of the an.pdf
Nittany Company uses a periodic inventory system- At the end of the an.pdfAugstore
 
NIKE- INC- Condensed Balance Sheet May 31 (-$ in millions) Assets Curr.pdf
NIKE- INC- Condensed Balance Sheet May 31 (-$ in millions) Assets Curr.pdfNIKE- INC- Condensed Balance Sheet May 31 (-$ in millions) Assets Curr.pdf
NIKE- INC- Condensed Balance Sheet May 31 (-$ in millions) Assets Curr.pdfAugstore
 
News Revlew 4- Continuous Process Improvement Program Upon successful.pdf
News Revlew 4- Continuous Process Improvement Program Upon successful.pdfNews Revlew 4- Continuous Process Improvement Program Upon successful.pdf
News Revlew 4- Continuous Process Improvement Program Upon successful.pdfAugstore
 
Nick is a male who displays a rare mitochondrial disease- Nick's wife-.pdf
Nick is a male who displays a rare mitochondrial disease- Nick's wife-.pdfNick is a male who displays a rare mitochondrial disease- Nick's wife-.pdf
Nick is a male who displays a rare mitochondrial disease- Nick's wife-.pdfAugstore
 
Ninition min sinsMiate Orese sin tins 1230.pdf
Ninition min sinsMiate Orese sin tins 1230.pdfNinition min sinsMiate Orese sin tins 1230.pdf
Ninition min sinsMiate Orese sin tins 1230.pdfAugstore
 

More from Augstore (20)

Note- Always keep track of your work- Wowza Corporation manufactures p.pdf
Note- Always keep track of your work- Wowza Corporation manufactures p.pdfNote- Always keep track of your work- Wowza Corporation manufactures p.pdf
Note- Always keep track of your work- Wowza Corporation manufactures p.pdf
 
Note- 1- There was no retirement of stock during the yoar- A- There wa.pdf
Note- 1- There was no retirement of stock during the yoar- A- There wa.pdfNote- 1- There was no retirement of stock during the yoar- A- There wa.pdf
Note- 1- There was no retirement of stock during the yoar- A- There wa.pdf
 
Note the image showing a series of batholiths on the landscape- How di.pdf
Note the image showing a series of batholiths on the landscape- How di.pdfNote the image showing a series of batholiths on the landscape- How di.pdf
Note the image showing a series of batholiths on the landscape- How di.pdf
 
note 2^R stand for w reversed (c) L3-{ww-wR-w is odd with 010 as the m.pdf
note 2^R stand for w reversed (c) L3-{ww-wR-w is odd with 010 as the m.pdfnote 2^R stand for w reversed (c) L3-{ww-wR-w is odd with 010 as the m.pdf
note 2^R stand for w reversed (c) L3-{ww-wR-w is odd with 010 as the m.pdf
 
Not yet answered Points out of 1-00 Flag question It seems kind of wei.pdf
Not yet answered Points out of 1-00 Flag question It seems kind of wei.pdfNot yet answered Points out of 1-00 Flag question It seems kind of wei.pdf
Not yet answered Points out of 1-00 Flag question It seems kind of wei.pdf
 
Not yet answered Points out of 1-00 Flag question Stephanie likes to p.pdf
Not yet answered Points out of 1-00 Flag question Stephanie likes to p.pdfNot yet answered Points out of 1-00 Flag question Stephanie likes to p.pdf
Not yet answered Points out of 1-00 Flag question Stephanie likes to p.pdf
 
Not able to run quiz question -- Define an array of objects with qu.pdf
Not able to run quiz question    -- Define an array of objects with qu.pdfNot able to run quiz question    -- Define an array of objects with qu.pdf
Not able to run quiz question -- Define an array of objects with qu.pdf
 
Not for Profit class The non-profit is planned parenthood Discuss ho.pdf
Not for Profit class The non-profit is planned parenthood   Discuss ho.pdfNot for Profit class The non-profit is planned parenthood   Discuss ho.pdf
Not for Profit class The non-profit is planned parenthood Discuss ho.pdf
 
Not long ago- the Federal Communications Commission (FCC) implemented.pdf
Not long ago- the Federal Communications Commission (FCC) implemented.pdfNot long ago- the Federal Communications Commission (FCC) implemented.pdf
Not long ago- the Federal Communications Commission (FCC) implemented.pdf
 
Nonchalant Actron (NA) has a current dividend (D0) of $1-80- Dividends.pdf
Nonchalant Actron (NA) has a current dividend (D0) of $1-80- Dividends.pdfNonchalant Actron (NA) has a current dividend (D0) of $1-80- Dividends.pdf
Nonchalant Actron (NA) has a current dividend (D0) of $1-80- Dividends.pdf
 
Non-foliated metamorphic rocks generally are- composed of a few visibl.pdf
Non-foliated metamorphic rocks generally are- composed of a few visibl.pdfNon-foliated metamorphic rocks generally are- composed of a few visibl.pdf
Non-foliated metamorphic rocks generally are- composed of a few visibl.pdf
 
Non-financial reporting With the growth in non-financial reporting ove.pdf
Non-financial reporting With the growth in non-financial reporting ove.pdfNon-financial reporting With the growth in non-financial reporting ove.pdf
Non-financial reporting With the growth in non-financial reporting ove.pdf
 
Nominal GDP of Utopia was the highest in Real GDP of Utopia in 2016 is.pdf
Nominal GDP of Utopia was the highest in Real GDP of Utopia in 2016 is.pdfNominal GDP of Utopia was the highest in Real GDP of Utopia in 2016 is.pdf
Nominal GDP of Utopia was the highest in Real GDP of Utopia in 2016 is.pdf
 
Non-marine (live in water that is not seawater) diatoms are algae that.pdf
Non-marine (live in water that is not seawater) diatoms are algae that.pdfNon-marine (live in water that is not seawater) diatoms are algae that.pdf
Non-marine (live in water that is not seawater) diatoms are algae that.pdf
 
No outstanding checks and no deposits in transit were noted in August- (1).pdf
No outstanding checks and no deposits in transit were noted in August- (1).pdfNo outstanding checks and no deposits in transit were noted in August- (1).pdf
No outstanding checks and no deposits in transit were noted in August- (1).pdf
 
Nittany Company uses a periodic inventory system- At the end of the an.pdf
Nittany Company uses a periodic inventory system- At the end of the an.pdfNittany Company uses a periodic inventory system- At the end of the an.pdf
Nittany Company uses a periodic inventory system- At the end of the an.pdf
 
NIKE- INC- Condensed Balance Sheet May 31 (-$ in millions) Assets Curr.pdf
NIKE- INC- Condensed Balance Sheet May 31 (-$ in millions) Assets Curr.pdfNIKE- INC- Condensed Balance Sheet May 31 (-$ in millions) Assets Curr.pdf
NIKE- INC- Condensed Balance Sheet May 31 (-$ in millions) Assets Curr.pdf
 
News Revlew 4- Continuous Process Improvement Program Upon successful.pdf
News Revlew 4- Continuous Process Improvement Program Upon successful.pdfNews Revlew 4- Continuous Process Improvement Program Upon successful.pdf
News Revlew 4- Continuous Process Improvement Program Upon successful.pdf
 
Nick is a male who displays a rare mitochondrial disease- Nick's wife-.pdf
Nick is a male who displays a rare mitochondrial disease- Nick's wife-.pdfNick is a male who displays a rare mitochondrial disease- Nick's wife-.pdf
Nick is a male who displays a rare mitochondrial disease- Nick's wife-.pdf
 
Ninition min sinsMiate Orese sin tins 1230.pdf
Ninition min sinsMiate Orese sin tins 1230.pdfNinition min sinsMiate Orese sin tins 1230.pdf
Ninition min sinsMiate Orese sin tins 1230.pdf
 

Recently uploaded

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
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
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
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
 

Recently uploaded (20)

ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
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
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
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.
 

Note- Can someone help me with the public boolean isEmpty()- public bo.pdf

  • 1. Note: Can someone help me with the public boolean isEmpty(), public boolean contains(Object o), public int indexOf(Object o) and public E get(int index)methods using abstract List. package edu.ust.cisc; import java.util.Iterator; public abstract class CiscAbstractList implements CiscList { /** * Returns the number of elements in this list. * * @return the number of elements in this list */ @Override public int size() { int size = 0; Iterator itr = iterator(); while(itr.hasNext()) { itr.next(); size++; } return size; } /** * Returns {@code true} if this list contains no elements. * * @return {@code true} if this list contains no elements */ @Override public boolean isEmpty() { return false; } /** * Returns {@code true} if this list contains the specified element (compared using the {@code equals} method). * * @param o element whose presence in this list is to be tested * @return {@code true} if this list contains the specified element * @throws NullPointerException if the specified element is null */ @Override public boolean contains(Object o) { return false; } /** * Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not * contain the element (compared using the {@code equals} method). * * @param o element to search for * @return the index of the first occurrence of the specified element in this list, or -1 if this list does not * contain the element * @throws NullPointerException if the specified element is null */ @Override public int indexOf(Object o) { return 0; } /** * Removes all of the elements from this list. The list will be empty after this call returns. */ @Override public abstract void clear(); /** * Returns the element at the specified position in this list. * * @param index index of the element to return * @return the element at the specified position in this list * @throws IndexOutOfBoundsException if the index is out of range */ @Override public E get(int index) { return null; } /** * Appends the specified element to the end of this list. * * Lists may place the specified element at arbitrary locations if desired. In particular, an ordered list will * insert the specified element at its sorted location. List classes should clearly specify in their documentation * how elements will be added to the list if different from the default behavior (end of this list). * * @param e element to be appended to this list * @return {@code true} * @throws NullPointerException if the specified element is null */ @Override public boolean add(E e) { return false; } /** * Replaces the element at the specified position in this list with the specified element (optional operation). * * @param index index of the element to replace * @param element element to be stored at the specified position * @return the element previously at the specified position * @throws UnsupportedOperationException if the {@code set} operation is not supported by this list * @throws NullPointerException if the specified element is null * @throws IndexOutOfBoundsException if the index is out of range */ @Override public E set(int index, E element) { return null; } /** * Returns an array containing all of the elements in this list in proper sequence (from first to last element). * * The returned array will be "safe" in that no references to it are maintained by this list. (In other words, * this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify * the returned array. * * @return an array containing all of the elements in this list in proper sequence */ @Override public Object[] toArray() { return new Object[0]; } /** * Removes the first occurrence of the specified element from this list, if it is present. If this list does not * contain the element, it is unchanged. Returns {@code true} if this list contained the specified element. * * @param o element to be removed from this list, if present * @return {@code true} if this list contained the specified element * @throws NullPointerException if the specified element is null */ @Override public boolean remove(Object o) { return false; } /** *
  • 2. Removes the element at the specified position in this list. Shifts any subsequent elements to the left * (subtracts one from their indices). Returns the element that was removed from the list. * * @param index the index of the element to be removed * @return the element previously at the specified position * @throws IndexOutOfBoundsException if the index is out of range */ @Override public E remove(int index) { return null; } /** * Inserts the specified element at the specified position in this list (optional operation). Shifts the element * currently at that position (if any) and any subsequent elements to the right (adds one to their indices). * * @param index index at which the specified element is to be inserted * @param element element to be inserted * @throws UnsupportedOperationException if the {@code add} operation is not supported by this list * @throws NullPointerException if the specified element is null * @throws IndexOutOfBoundsException if the index is out of range */ @Override public void add(int index, E element) { } /** * Appends all elements in the specified list to the end of this list, in the order that they are returned by the * specified list's iterator (optional operation). * * @param c list containing elements to be added to this list * @return {@code true} if this list changed as a result of the call * @throws UnsupportedOperationException if the {@code addAll} operation is not supported by this list * @throws NullPointerException if the specified list is null */ @Override public boolean addAll(CiscList extends E> c) { return false; } /** * Returns an iterator over the elements in this list in proper sequence. * * @return an iterator over the elements in this list in proper sequence */ @Override public Iterator iterator() { return null; } /** * Returns a string representation of this list. This string should consist of a comma separated list of values * contained in this list, in order, surrounded by square brackets (examples: [3, 6, 7] and []). * * @return a string representation of this list */ @Override public String toString() { return null; } }