#Help me with this

1 messages · Page 1 of 1 (latest)

indigo gyro
#

I am beginner in java,I need data structure in java such a way that it should be iteratable and is sorted.i.ie whenever i add new value it should be added in its correct position i.e after adding or deleting any element it should be sorted.

proven drumBOT
#

<@&987246399047479336> please have a look, thanks.

dense marlin
#

is this something you need because you are making a program that needs it

#

or an assignment for a class that you dont know how to do

robust bobcat
#

And what's your specific question? Do you not get the algorithm, lack of Java knowledge, or?

warm shard
#

Simply use an ArrayList and write an algorithm that inserts an element at its sorted position.

flat zinc
#

Sounds like TreeSet

#

Which is a Red-Black tree