Комментарии:
What's the point of declaring the internal list?
Edit: in other words, couldn't you just do something like this for the next method:
return (CustomArrayList.this.get(indexPosition++));
And therefore avoid writing a constructor?
?
I keep hearing you say "iterable" but the only thing I saw was "Iterator". Am I missing something??
ОтветитьThank you! This was very helpful.
Ответитьthank you so much, this video saved my ass!
i love you dude!
this was a very disent tutorial. Do you have a tutorial on customizing the desktop enviorment?
ОтветитьSaved my butt for my exam tmr. thanks
Ответитьlol my man is takin the key board out back and boxing the shit out of it other than this gr8 tut
Ответитьgood job from germany thanks
Ответитьwhat os are you using
ОтветитьSweet, cleared things up for me. Thanks.
ОтветитьThanks for the video. (I am sure I heard a train in the background! :))
Ответитьok and i guess you don't need a class to implement iterator if you only need the default next and hasNext behavior because the List class has it's own iterator() method that returns a Iterator. So in public Iterator<T> iterator() method you can just return MyList.iterator();
ОтветитьGreat tutorial, very straight forward.
Ответитьthank you this was extremly clear, best video I found about this topic (:
ОтветитьExcellent
ОтветитьThank you so much. I exactly have been looking for such video! I learned a lot.
ОтветитьI have watched this video several times and every time I learnt something new and existing, informative that I REALLY wanted to know. That's why I wanted to say thank again. Thank you so much teacher. You are THE BEST!
Ответитьthanks pal.
Ответитьpoor, why didnt u manually create the custom iterator object and use it instead of using for each loop. it defeats half the point of this video. other than that the video was aight. ty
ОтветитьYour are Amazing bro
ОтветитьClasses just went online and my cs professor decided now is a good time to give less direct answers than when we would meet face to face a few times a week. Her help to me not being able to understand why I couldn’t iterate through a generic arraylist using a for each loop but a regular for loop works fine was that it should work and if not I should be able to find a solution online. This was amazing ty
Ответитьu say in the intro that u gonna keep talking about the collecation interface, where can i find that vid?
ОтветитьHow would I iterate starting from last index to first index?
ОтветитьSomebody has well said "hands-on trial is way better than reading".
Great explanation 🔥🔥
Shouldn't the logic in hasNext be: " if ( internalList.size() > indexPosition + 1 ) " ?? And not " >= " ? If the size is also equal to the position + 1, that means we are at the end of the list, and there is no next element. Example : we have a list of two things, ["bob", "jane"]. The size would be 2. If we are at index 1 in Java, we are at the 2nd element ("jane"). If the "size" (2) is equal to "index + 1" (2) your code says that it hasNext or has another element, which isn't the case.
ОтветитьThank you for the help! You made this concept click!
ОтветитьHmm, I think it would be helpful if there was a simple description of what they are first. By your definition, there's an interface that has a method which is also an interface. ...see what I mean?
ОтветитьExcellent presentation
ОтветитьGreat lesson! Thank you!
Ответить