Java Video Tutorial 11

Code Here:

Best Java Book :

In this part of my Java Video Tutorial I introduce Java collection classes. Specifically I cover how to use Java ArrayLists.

Java ArrayLists make it easy to keep track of groups of objects. A Java ArrayList differs from a java array in that it automatically resizes itself when you add or remove values.

I’ll go over nearly every Java ArrayList method in this video.


Jessie Silbaugh says:


Shakeib Shaida says:

Iterator library is still useful after the advent of enhanced for loop?

Daria Derda says:

When your professor isn’t super clear, always head to Derek Banas videos!

squallit says:

Thank you! You’re great!

Jackie M says:

5:44 is that an individual situation?

Mantas Lukoševičius says:

Can’t use removeRange. I googled that this is protected method.

BCwithPC says:

I really liked this episode. A lot of the time Java can get confusing, but this stuff just seemed to make sense.

Aftab Ahmed says:

This channel has become my goto channel if I want to learn a new topic !! You are AMAZING !!

Rapid Readers says:

Did you know…..
If you type “sysout” and then hit ctrl+space, you’ll get

Jianxiong Ji says:

you are so good

Moe Zack says:

you sir are magnificent!

Ari S. says:

thank you Derek. you just made my arraylist confusion soo soo much easier

sarit v says:

Thank you so much! may i ask why do people use “i” all the times in for loops?

RFAAS says:

hi i like this video very much! just wanna ask why for names.add(2,”jack ryan”) jackryan has not replace the one used to be in 2?

ghee4345 says:

what about a 2-D arrayList?

Rezoanur Rahman says:

Really Helpful!

mrzragon says:

for the import java.util.ArrayList; and all of the others they are yellow help please

Mohammed El-Khalil says:

Is it possible to create a collection of boolean that is mutable? in that case, how?

Ilia Yovchev says:

Very nice indeed! It is amazing how much you can learn about anything from the Internet for free because of people like you!

udhaya kumar says:

can any one explain what does object[] array does?

Seventy-Three David says:

Very helpful except my professor is asking us to do some pretty whacky stuff. How would one insert a pair of data into a table. For example, my objective isto apply the use of Scanners for keyboard input and ArrayLists for maintaining lists of data. Essentially, I have to insert an (int, string) pair which needs to be stored in a specific bin based on the int%5 value.

baskaran krishnaveni says:

Is Arraylist has efficient as linked list in terms of saving memory ?

乃木ボーイ says:

why the video so laggy?

Diaa Mostafa says:

Your tutorials are excellent. Thank you !

Prasad Moghe says:

Greetings Derek, All videos and presentation are excellent. Your voice is appealing too. The language is simple and examples are fabulous.

Anju Mahajan says:

You are the best derek

Irfan Sindhi says:

Hey Derek, does importing the entire library have any effect with the speed of execution of the code? Like why aren’t we using “java.util.*;” instead of “java.util.ArrayList” and others.

alias40anon says:

As I understand it in, fact you have the freedom to define any word of the real language as a class, with a function/meaning/operation you want and on the base of this word (which becomes the object/class) you just add a dot and after that again operations that want to run. Although many of these operations are not defined in the specific class under development. And as I see from the suggestions the program gives automatically when you type a dot, there are already -many of them-existing. I suppose in libraries from the years of development by coders as a now default in most packages. Am I right? 😉

wildfyah says:

omg thanks! This helps a lot.

Cleitonn José da Silva says:

lIKE! Good Job Man, only a little rushed rsrs

Bart van den Hof says:

Hi Derek, awesome video as always.

I have a small question about the removeRange function. Why is it protected, and how can I still use it?

Aus Taft says:

I get an error “removeRange(int, int) has protected Access in ArrayList”, whenever used names.removeRange(0,1); Is there a way to bypass that?

Eugene Kuzmov says:

How does a program know that “i” equals to a name? We did not statated String i = John Smith for example

Frank Liu says:

is there such thing as multidimensional array list

stuti swarnkar says:

your video is simplest to understand!! kudos to you..

Anis Errais says:

So an arraylist can be used as a infinite database?

Big Worm says:

Do you need the iterator and arrays import? In intellij I haven’t been using those but my programs work

Thanks for the video derek

Johnny Batafljeska says:

when I import Arrays my program says to me ” expected”

wildfyah says:

omg thanks! This helps a lot.

GobblowGalaxyGamer says:

Can you explain the difference between using a for loop and an iterator and which one is better?

Eesaa Philips says:

It’s 2017 and i still refer to this tutorial. Great videos…

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!