Please edit your post and wrap your code with code tags:
YOUR CODE HERE
to get highlighting and preserve formatting.
Please explain what happens when you compile and execute the program....
Type: Posts; User: Norm
Please edit your post and wrap your code with code tags:
YOUR CODE HERE
to get highlighting and preserve formatting.
Please explain what happens when you compile and execute the program....
Also posted at: Sorting by numbers of words in each sentence that is in ArrayList index.
Look at using the Collections class's sort() method. You will need to write a Comparator for it to use.