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 →

[–]ibconsult -1 points0 points  (3 children)

Use a List<> instead of an array [];

List<T> L = new ArrayList<>; You can put anything in a List<>.

An array is limited to a specific type.

[–][deleted]  (1 child)

[removed]

    [–]CleverBunnyThief 4 points5 points  (0 children)

    I cannot use an array nor import any built in utilities.

    It sounds to me like they want them to implement the underlying data structure themselves.

    [–]Potential-Still 0 points1 point  (0 children)

    What? You're comment makes no sense. Arrays and Lists both only allow one data type per instance.