Додати до Chrome
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
What is wrong with this implementation of the next() in the CompositeIterator class.
The iterator of component is not pushed.
The iterator must be returned instead of the component.
The pop() method should be used instead of peek().
The else statement should return component.next() instead of null.
Nothing is wrong.
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!