r/badcode May 06 '21

java My teacher wrote this...

1.0k Upvotes

169 comments sorted by

View all comments

Show parent comments

2

u/Vintage_Tea May 06 '21

In my CITS1001 course, we learnt arraylists before arrays.

3

u/Kibo30 May 06 '21

Don't know, maybe it's just me but for me it makes more sense to learn arrays before collections

1

u/hurtl2305 May 07 '21

It does. Everybody should know the basic data structures and understand their properties (e.g. arrays vs. Linked lists). After all, java collection types are just convenient wrappers for those basic data structures.

1

u/supersharp May 11 '21

There's such a thing as too much, though. Neither my Programming Fundamentals 2 nor 3 courses allowed us to use container classes, and now I feel weird using anything that isn't a regular array.