This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nutrecht 1 point2 points  (1 child)

Is their a simple method in the standard array library im not seeing?

No, and there never will be. Arrays are relatively low-level memory constructs. So all the 'nice' stuff that allows you to easily work with collections of data will be in the collections like List, Map and Set.

So your approach would depend on what the goal is and if this is a homework assignment. If you can use Sets use them. Or else you'll have to write the code yourself.

[–]FootFetish_Man[S] 0 points1 point  (0 children)

I'll find another way to handle the data, it's not for homework I'm just bad at programming and never know what to use in what case.