Help with programming homework?
I had 3 labs for Programming and this last one I just can't get here's the guidelines:
Create a string ArrayList. Fill it with 10 strings using the set method. Use a for loop to put the arraylist in alphabetical order. (clue use compareTo) You will also need to determine the longest and shortest string. at the end print out the newly ordered list as well as the longest and shortest string.
Any help would be greatly appreciated. (Do not have to do the problem for me just give me a basis where to start) I know how to create the arraylist but the looping is where I have trouble.