About 684,000 results
Open links in new tab
  1. java - Sorting arraylist in alphabetical order (case insensitive ...

    Apr 28, 2011 · I have a string arraylist names which contains names of people. I want to sort the arraylist in alphabetical order.

  2. Java Program to Sort an ArrayList - GeeksforGeeks

    Jul 23, 2025 · The collection class provides two methods for sorting ArrayList. sort () and reverseOrder () for ascending and descending order respectively. 1 (A)Ascending Order This sort () Method accepts …

  3. Sort a String in Java (2 different ways) - GeeksforGeeks

    Mar 18, 2024 · The string class doesn't have any method that directly sorts a string, but we can sort a string by applying other methods one after another. The string is a sequence of characters. In java, …

  4. How to Sort an ArrayList Alphabetically in Java

    Learn how to efficiently sort an ArrayList alphabetically in Java with expert tips, code examples, and common pitfalls to avoid.

  5. How to Alphabetically Sort an ArrayList in Java?

    Learn how to sort an ArrayList in alphabetical order using Java's Collections framework with step-by-step instructions and code examples.

  6. Sorting a String Alphabetically in Java - Baeldung

    Mar 17, 2024 · Have a look at different ways to sort a String alphabetically in Java.

  7. Java Program to Sort Names in an Alphabetical Order

    Jul 23, 2025 · For, sorting names in an Alphabetical order there are multiple ways to sort the array, like using inbuilt Arrays.sort () method or using normal sorting algorithms like the bubble sort, merge sort.

  8. How to Sort an ArrayList of Strings in Alphabetical Order in Java ...

    Learn how to sort an ArrayList of strings alphabetically in Java with step-by-step guidance and code examples.

  9. java - Sorting an ArrayList<String []> in alphabetical order - Stack ...

    Aug 29, 2018 · I am relatively new to java and would like to know how to sort an ArrayList of type String[] in alphabetical order. In this case, my ArrayList name is temp. Basically String[] would hold 3 elements:

  10. How to Sort an ArrayList of Strings in Alphabetical Order without Case ...

    Learn how to sort an ArrayList of strings alphabetically in Java, ensuring case insensitivity. Follow this guide for clear code examples and common mistakes.