You are viewing a single comment's thread. Return to all comments →
for String[] arr, use Arrays.sort(), notice arr has a fixed length. ArrayList is a collection (length is not fixed), use Collections.sort().
Seems like cookies are disabled on this browser, please enable them to open this website
Day 28: RegEx, Patterns, and Intro to Databases
You are viewing a single comment's thread. Return to all comments →
for String[] arr, use Arrays.sort(), notice arr has a fixed length. ArrayList is a collection (length is not fixed), use Collections.sort().