Is there method in Java to compare the strings first letter and sort the alphabetical or I have to substring and compare them with bubble sort
Thanks
kukuruku
0
Light Poster
Recommended Answers
Jump to PostYou want to sort Strings? Sure, there's library code for that. Strings are Comparable, so if you put them in an array, you can call the sort() method - see the sun reference for Arrays.
All 2 Replies
Reply to this topic
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.