About 920,000 results
Open links in new tab
  1. Reverse a String in Java - GeeksforGeeks

    Oct 14, 2025 · In Java, reversing a string means rearranging its characters from last to first. It’s a common programming task used in algorithms, data processing, and interviews. There are several …

  2. Collections.reverseOrder () in Java with Examples

    Jul 23, 2025 · The reverseOrder () method of Collections class that in itself is present inside java.util package returns a comparator and using this comparator we can order the Collection in reverse …

  3. Reverse an Array in Java - GeeksforGeeks

    Jul 11, 2025 · Reversing an Array is a common task in every programming language. In Java, there are multiple ways to reverse an array. We can reverse it manually or by using built-in Java methods. In …

  4. Java Sort a List - List Sorting - W3Schools

    Java Sort a List In the previous chapters, you learned how to use two popular lists in Java: ArrayList and LinkedList, which are found in the java.util package. Another useful class in the java.util package is …

  5. Java How To Reverse a String - W3Schools

    Explanation: We start with an empty string reversedStr. - On each loop, we take one character from the original string using charAt(). - Instead of adding it to the end, we place it in front of the existing …

  6. Reverse a String - GeeksforGeeks

    Mar 7, 2026 · Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school …

  7. Java - Iterate Array in Reverse Order - GeeksforGeeks

    Jul 23, 2025 · In Java, iterating over an array in reverse order means accessing the elements of the array from the last to the first. We have multiple ways to iterate an array in reverse order. Example 1: …

  8. Reverse Number Program in Java - GeeksforGeeks

    Jul 23, 2025 · Methods to Reverse a Number in Java We can reverse a number in Java using three main methods as mentioned below: Using While Loop Using Recursion Using StringBuilder class 1. …

  9. Reverse an ArrayList in Java - Baeldung

    Apr 3, 2025 · 3. Using the Standard Collections.reverse Method The Java standard library has provided the Collections.reverse method to reverse the order of the elements in the given List. This convenient …

  10. How to Reverse a String in Java: 9 Ways with Examples [Easy]

    Jan 30, 2025 · This tutorial covers 9 methods for how to reverse a string in Java, including methods using built-in reverse functions, recursion, and a third-party library.