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

    Mar 27, 2025 · In this article, we will discuss multiple approaches to reverse a string in Java with examples, their advantages, and when to use them. The for loop is a simple, straightforward …

  2. Java Program to Reverse a Number

    In this program, you'll learn to reverse a number using a while loop and a for loop in Java.

  3. Java How To Reverse a String - W3Schools

    You can easily reverse a string by characters with the following example: reversedStr = originalStr.charAt(i) + reversedStr; } System.out.println("Reversed string: "+ reversedStr);

  4. Reverse a string in Java - Stack Overflow

    Sep 10, 2017 · For versions prior to Java 5, the StringBuffer class can be used instead — it has the same API. "Thanks commentators for pointing out that StringBuilder is preferred …

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

    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.

  6. How to Reverse A String In Java | Java Reverse Programs - Edureka

    Mar 14, 2023 · In this article, I will tell you the various approaches to Reverse a String in Java. 1. Reverse a String using CharAt Method. 2. Reverse a String using String Builder / String Buffer …

  7. Reverse a String in Java in 10 different ways - Techie Delight

    Apr 1, 2024 · We have covered 10 different ways (and 15 different implementations) to reverse a string in Java: 1. Using StringBuilder / StringBuffer. We can use the StringBuilder.reverse() …

  8. How To Reverse A Number In Java: A Step-by-Step Guide

    Here are the best Five Ways To Reverse a Number In Java: Reverse a number in Java Using – While Loop; Do while loop; Recursion; String; Array; Let’s understand one by one method

  9. Java Program to Reverse a Number - Java Guides

    This guide will show you how to reverse a number using various methods, including mathematical operations, string manipulation, and recursion. Given an integer, reverse its digits. For …

  10. How to Find Reverse of a Number in Java - Shiksha Online

    Jan 10, 2023 · Learn how to reverse a number in Java using different methods, including loops, strings, character arrays, and recursion. Compare the time and space complexity of each …

  11. Some results have been removed
Refresh