I'm wondering if this is possible in Java. I want to insert it into the correct spot alphabetically. For example is the the LinkedList's (let's say it's called coollist) elements were : [Dusty, Gordon, Mayer, Popovic, Zechariah] and I try to insert another String by doing:
coollist.add(d,Nyugen); //d is a a variable representing ant int which is the index
What can I do to make d the value that will insert it in alphabetical order, regardless of what's in the LinkedList? Can you guys help me out? I hope this makes sense.