How would I sort an array or arrayList of strings into alphabetical order?
lil_panda 0 Light Poster
Recommended Answers
Jump to PostUse the Arrays class: Arrays
Signature:
public static void sort(Object[] a)String [] arr=new String[5]; //put stuff into the array. Arrays.sort(arr);
The sort will take any array with Objects …
All 3 Replies
Alex Edwards 321 Posting Shark
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
gregoryalussier 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.