micharg
Saturday, 12 September 2015
How to sort an Array of Strings
This is a silly mistake I did..
Don't use
Arrays.sort(strs.toArray(new String[0]));
Instead use the following:
Collections.sort(strs);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment