1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
yKpoI14uk [10]
3 years ago
5

eate a class which is an iterator for the LinkedCollection. This class must implement the Iterator interface. You must think abo

ut what field(s) you need to keep track of the current element in the iteration, how to initialize the field(s), how to move to the next element, and how to know when all elements have been returned.
English
1 answer:
Readme [11.4K]3 years ago
8 0

Answer:

class CustomDataStructure implements Iterable<> {  

 

// code for data structure  

public Iterator<> iterator() {  

 return new CustomIterator<>(this);  

}  

}  

class CustomIterator<> implements Iterator<> {  

 

// constructor  

CustomIterator<>(CustomDataStructure obj) {  

 // initialize cursor  

}  

 

// Checks if the next element exists  

public boolean has Next() {  

}  

 

You might be interested in
there are 528 students. the school wants to order t-shirt for all the students.t-shirt come in pack of ten. should the school ro
nirvana33 [79]

Answer:

Yes, the school should round the number of students that get t-shirts.

Explanation:

528 rounded to the nearest tenth is 530, and 530/10 is 52. There will be 2 extra shirts which isnt alot.  

6 0
3 years ago
Read 2 more answers
Learning patience and humility is which part of odysseus's epic journey?
Molodets [167]
C) His transformation. When Odysseus finally returns home, he discovers there are multiple suitors who are taking advantage of his home in an effort to wed his wife Penelope who slowly becomes skeptical of Odysseus's survival. If Odysseus rushes in immediately, he would be killed by the large number of suitors. In order to win the upper hand, he disguises himself as an old man in order to calculate and plan out how to get rid of the suitors and reveal his true self to his wife. This involved great patience and humility, as being an elder man of a lowly status gave him a sense of humiliation from the treatment of those around him.
7 0
3 years ago
Read 2 more answers
What are the 3 parts of a writing rubric ?
vredina [299]
I think its brainstorm,and 2 more things i may be wrong though.
3 0
3 years ago
when considering why Henry was irritated with his mother in The red badge of courage, which reading strategy would be most effec
Snezhnost [94]

When considering why Henry was irritated with his mother in The Red Badge of Courage, the most effective reading strategy to realize this is reading between the lines to infere. At any moment it is said that he feels irritated with her, but there are two instances in chapter 1 that shows that. The first one is when he prepared himself emotionally for a warm welcome from his mother and she seemed cold and far away from him, while the other is when he was about to leave to the army and his mother gave him a moral speech. 'It had not been quite what he expected.' Whe can infere that he expected a hug, a kiss and an <em>I love you</em>, instead of rules of good behavior.

4 0
3 years ago
Read the excerpt below and answer the question.
natima [27]
In the excerpt above, the sentence is a _compound-complex sentence_.

This one makes the most sense.
8 0
3 years ago
Read 2 more answers
Other questions:
  • How does Wilbur show that he wants more friends? PLZ Anser
    14·2 answers
  • The rise of the English language is a remarkable success story. When Julius Caesar landed in Britain over two thousand years ago
    12·1 answer
  • How does Perseus punish the wicked King Polydectes and his followers?
    7·2 answers
  • The main character is faced with a harsh and freezing environment. This conflict is an example of
    13·2 answers
  • Every beautiful thought is a teacher; every noble line speaks to the brain and heart. How does Ingersoll's metaphor "Every beaut
    14·2 answers
  • Hllo whose want follower on brainly those firstly follow me​
    11·2 answers
  • Please help I have 20 minutes to finish the test for
    7·2 answers
  • I’ll give Brainly! :) pls help Read the excerpt from "Life on the Sea."
    15·1 answer
  • Which sentences from Edgar Allan Poe's story "The Tell-Tale Heart" help readers
    15·1 answer
  • Please identify what type of error the following sentence includes: While searching for employment, I travelled to Shanghai, Chi
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!