About 3,290,000 results
Open links in new tab
  1. java - String palindrome without using built in functions - Stack Overflow

    Oct 1, 2016 · I want to make program for String palindrome without using built in functions. Below is the code i have tried so far : private static Scanner in; public static void main(String[] args) …

  2. Java Program to Check Whether a String is a Palindrome

    Apr 15, 2025 · In this article, we will go through different approaches to check if a string is a palindrome in Java. Example Input/Output: Output: True. The brute force or naive approach to …

  3. Check if a String Is a Palindrome in Java - Baeldung

    Mar 17, 2024 · There are a few different implementations that fit this use case: we can make use of the API methods from StringBuilder and StringBuffer classes when checking for …

  4. Java Program to Check Whether Given String is a Palindrome

    Scanner class is a part of java.util package, so we required to import this package in our Java program. We also required to create an object of Scanner class to call its functions. str = …

  5. java - Check if a given string can be a palindrome by altering …

    Apr 29, 2015 · I was asked in an interview to write code to check if a given string is a palindrome or can be a palindrome by altering some character without using library function. My logic is to: …

  6. 5 Ways to check if a String is palindrome in JAVA

    Mar 1, 2025 · There are multiple ways of checking whether the string is a palindrome or not. We are gonna see 5 such ways. Let’s start with the first one. 1. Using StringBuilder (Reverse and …

  7. java - Check whether a given String is palindrome or not without using ...

    Sep 16, 2018 · I was asked in an interview to write code to check if a given string is a palindrome or can be a palindrome by altering some character without using a library function. Here is my …

  8. Java 8 Streams - Checking Whether String is Palindrome Or Not

    Nov 9, 2021 · In this tutorial, We'll learn how to check the given string is palindrome or not in java 8 programming. Palindrome means when the string is reversed, it is as same as the original …

  9. 2 Ways to check If String is Palindrome in Java? Recursion ... - Blogger

    Sep 24, 2023 · There are two common ways to find if a given String is Palindrome or not in Java, first by using for loop, also known as an iterative algorithm, and second by using recursion, …

  10. How to check if a String is a Palindrome using Java 8 Streams

    Dec 9, 2019 · In this post, we will see “How to check if the String or Number is Palindrome or not with the help of Java 8 Streams API?” Java 8 Streams power to test Palindrome... Check it …

Refresh