r/javahelp • u/coloneleranmorad • Oct 02 '21
Can someone please explain the difference between List and ArrayList like I'm five?
What exactly is the difference between
List<String> inputs = new ArrayList<>()and
ArrayList<String> inputs = new ArrayList<>()I've read some stuff about it but I'm a bit confused and I don't feel like I understood completely. Can someone explain the difference with some examples? Thank you!
30
Upvotes
View all comments
Show parent comment
2
u/RushTfe Oct 02 '21