Skip to content
Java List and ArrayList
Profile icon
ShadeVI

Hi guys,
is there any difference between these two ways?

List wordlist = new ArrayList <> ();

and

ArrayList wordlist = new ArrayList ();

You are viewing a single comment. View All
Answered by hellooneplus [earned 5 cycles]
View Answer
Profile icon
RYANTADIPARTHI

@ShadeVI
well it's just like that. they have differences. this is a arraylist btw. What you are showing is an arraylist.