java program to find plaindrome

Solutions on MaxInterview for java program to find plaindrome by the best coders in the world

showing results for - "java program to find plaindrome"
Mattia
25 Apr 2020
1import java.util.*;   
2class PalindromeExample2  
3{  
4   public static void main(String args[])  
5   {  
6      String original, reverse = ""; // Objects of String class  
7      Scanner in = new Scanner(System.in);   
8      System.out.println("Enter a string/number to check if it is a palindrome");  
9      original = in.nextLine();   
10      int length = original.length();   
11      for ( int i = length - 1; i >= 0; i-- )  
12         reverse = reverse + original.charAt(i);  
13      if (original.equals(reverse))  
14         System.out.println("Entered string/number is a palindrome.");  
15      else  
16         System.out.println("Entered string/number isn't a palindrome.");   
17   }  
18}  
Isabell
19 Jun 2017
1public class Palindrome {
2
3    public static void main(String[] args) {
4
5        int num = 121, reversedInteger = 0, remainder, originalInteger;
6
7        originalInteger = num;
8
9        // reversed integer is stored in variable 
10        while( num != 0 )
11        {
12            remainder = num % 10;
13            reversedInteger = reversedInteger * 10 + remainder;
14            num  /= 10;
15        }
16
17        // palindrome if orignalInteger and reversedInteger are equal
18        if (originalInteger == reversedInteger)
19            System.out.println(originalInteger + " is a palindrome.");
20        else
21            System.out.println(originalInteger + " is not a palindrome.");
22    }
23}
queries leading to this page
program to print palinf 5cdrome in javawrite a programme to check pallindrome of num javajava program to check whether a number is palindrome or notpalindrome method java define palindrome in javastring special palindrome in java 8write java program to check if a number is palindrome in java 3fcreating a palindrome in javaprogram to check palprime in javawrite a java program for palindrome numberpalindrome date program in javapalindrome java optimizepalindrome string program in javajava program to check whether string is palindromecheck if a number is palindrome javawrite a program to check whether a string is palindrome or not in javak palindrome program in javawrite a simple java program to check if a given string is palindrome or not java program to check palindromicity of a programprogram to check palindrome javapalindrome program javacheck a string is palindrome or not in javais palindrome java in builtpalindrome code in javapalindrome using java 8sentence palindrome javajava program to check palindrome string in a efficient waypalindrome java codejava check if string is palindromeis palindrome program in javapalindrome integer javafind whether the given number is palindrome or not check number palindrome javahow to solve palindrome problem in java with 5 test casespalindromenumber program in javajava number is palindromepolyndrom java code with scannerwrite a jaba program to check if a string is pallindormea palindrome is a number that reads the same java solutionjava program to check palindrome string using collectionchecking a palindrome string in javawrite a program to accept a number from the user through command line and display whether the given number is palindrome or not palindrome no in java gfgcheck for palindrome javapalindrom program in javapalindrom using menthod javapalindrome series in javajava code for palindromenumber palindrome program in javapslindrome in javafinding palindrome in a string javapallindrome in javause stack to check palindrome javapalindrome string javajava program to find palindrome numberpalindrome string in javafunction to check given string string is palindrome or not in javapalindromic string in javawrite a function in java pallindrome stringjava code for palindromalmost palindrome javajava palindrome interface examplejava program to check given number is pallindrome or notprogram related to palindrome in javapalindrome no logic in javato check whether number is palandrome or not in javawap palindrome in javais palindrome possible program in java wipropalindrome noin javainteger palindrome check in javahow to check that wheater the word is pallindrome using javajava program for pallindromepalindrome simple program in javajava program find integer as palindromepalidrome in javacheck string is palindrome or not in javalongest palindrome in javajava find palindrome in stringhow to traverse a palindrome javachecking if an integer is a palindrome javapalindrome or not in javahow to print palindrome javareverse palindrome program in javaplaindrome javapalindrome for phrase in javaprogram in java to check string is palindromejava program to find the palindrome numbers in an arraystring palindrome program in java using for looppalindrome in java geeksforgeeksmake a palindrome in netbeanscheck if a number is palindrome in javachecking palindrome in javahow to palindrone in javacheck palindrome in javapallindrome program in javafonction palindrome en javamake palindrom javajava program for palindromecheck palindrome string in javapalindrome number in java using methodshow to count palindrome in javastring is palindrome or not in javaword is palindrome in javajava check palindromejava program to check palindromepalindrom in javapalindrome app in javahow to make user defined function for palindrome in javajava program to print all palindrome words in a stringjava palindromespalindrome check in javapalindrome using string in javapalindrome for string in javapalindrom check javacheck if int is palindrome javajava palindrom easypelindrom logic javapalindrome printing in javastring palindrome in javajava code for integer palindromepalindrome code javapalindrome numbers in javapalindrome program in java using stringbuilderpalindrome check javacheck for palindrome in javanumerical diamond palindrome program in javapalindrome java programssimplifystring palindrome javahow to code a palindrome in javajava code for finding a palindrome numberjava program to check whether string is palindrome using library methodswrite a program to enter a number and check whether it is palindrome number or not java check if numbers are palindromepalindrome using predicate in java 8java palindrom explainedwrite a java program to check whether the given number is palindrome or notcheck palindrome methodspalindrome no in javainteger palindrome in javapalindrome javawrite a function in java pallindromepalindrome in string javapalindrome number java programpalindrome number or not in javapalindrom number in javapolyndrome in javacode for palindrome string in javajava palindromejava palindrome using integerperfect palindrome javapalindrome number using for loop in javapalindrome function with numbers in javahow to get palindrome of a int in javahow to code palindrome in java10 write a palindrome program in javafind palindrome in string javagenerate palindrome javapalindrome java codingfacecreate palindrome javajava check if input is palindromepaindrome of numbers javacheck the string is palindrome or not in java palindrome program in javalalindrome in javaimplement a program to check whether a given number is a palindrome javacheck number is palindrome or not in javapalindrome string javapalindrome checker in javajava program to find palindromelongest palindrome program in javapal c3 adndromo javahow to check palindrome number in javajava program to check if a number is palindrome or notmake palindrome javaprogram to check whether the number is palindrome or not in javajava program to find plaindromepalindromes javanumber palindrome in javajava code palindrome stringpalindrom program using javapalindrome number program in javais palindrome java while loopnumber is palindrome or not in javastring is palindrome on not in javahow to check the palindrome number in html using java 2fwrite a java program which read no from the user and check if this no is a palindrome or notbreak the palindrome in javapallindrome java codepalindrom java integerpalindrome number checker javaanti palindrome string in javajava program to0 find palindrome numberspalimdeome metod in javajava integer palindromepalindrom a string in javanumber is palindrome or not javahow to do palindrome javahow to check the palindrome number in html using javafxpallindorme javacode for palindrome in javajava palindromes for spacesjava polindromealgorithm for palindrome in javacheck if string is palindrome javacheck number palindrome program javajava palindrome solution charatpalindrome of number in javajava diff way to do pallidromejava multithreading program to find palindromepalindrome in java using for loopjava program forpalindromepalidrome javawrite a complete java program that will determine if a given number is a palindrome print palindrome in javafinding palindromes javajava for palindromepalindrome gfg javajava check string is palindromethe palindrome game java solutionadvanced palindrome string question in jvacheck for palindrome algorithm javajava program palindromejava check plaindromeispalindrome for a number in javapalindrome in javapalindrome solution javacheck palindrome using stack in javapalindrome java programpalindrome java palindrome no program in javahow to check if number is palindrome in javacreate function palindrome number in javapalindrom permutation javajava program for palindrome number 10thhow to find anti palindrome in javaalgorithm for palindrome number in javastring palindrome in java codehow to compare palindrome in javajava string palindrome programpalindrome program using while in javapalindrom programmieren javajava print a palindromepalindrome in javaanumber is a palindrome or not javapalindrome in javapalindromos en java palindrome integer in javacheck palindrome number in javawhat is palindrome number in javapallindrome number in javapalindrome words javachcek whether a number is a palindrome or not in javapalindrome number program javastring in java palindrome how to find palindrome javapalindrome check from reverse 28 29 in javapalindrome code substring javapalindrome in java 8palindromes using javapolyndrom java codepalindrome program in java using for looppalindrome function in javajava program to check whether a number is palindrome or not using functionjava palindrome numberpalindromeclass javalogest palindrome in javapalindrome words java programjava palindrome algorithmfind palindrome number in javapalindrom number in javajava palindrome programpalindrome of a number in javapalindrome java numbertest cases for palindrome number javapalindrome algorithm javastring palindrome code in javapalindrome in java programpalindrome method in code in javajava check palindrome numberpalindrome examples in javajava palyndromestring palindrome program in javapalindromic pattern in javapalindrome alphabet program in javaa java palindrome programhow to find palindrome number in javais palindrome javahow to find a palindrome number in javanumber is a palindrome javapalindrome test javajava program to check the string is palindrome or notpalindrome number in javajava is palindrome methodpalindrom in java programmierencommand line program to check if a number is palindrome or not in javapalindrome math java palindrome jacapalindrome java programeis palindrome string javajava program to read user input of a palindromehow to check palindrome of number using library function in javajava palindrome with looppalindrome method java palindrome number checkerpalindrome program in javapalindrome of number in java programstring palindrome in java using arraypaliindrime in javapalindrom javacheck palindrome javachecking a palindrome in javapalindrome formula in javajava collections pallindromepalindromes examples java examplehow to initialize n for palindrome in javapalindrome number javastring palindrome in java 8what is palindrome in javaimplement a class to find the reverse of a string also check if the string is a palindrome or not 3fbeeter algorithme to check palindrome javahow to find the palindrome number in javajava swing program to check string is palindrome or noteasy palindrome program in javapalindrome java questionhow to check if a string is palindrome in javapalindrome numbers javacreate palindrome of size n in javato print all palindrome number in javaalindrom in javapalindrome in java stringpalindrome number code in javaidentify palindrome in java palindrome in javagiven a line print only those words which are palindrome in javaprint first n palindrome numbers in javastring palindrome in java using for looppalindrome checker javapalindrome logic in javaispalindrome java codejava polindrome interfaceinteger palindrome program in javawrite a palindrome program in javaphrase palindrome in javahow to check palindrome nuber javachecking if a number is a palindrome javaprogram to check palindrome number in javawrite a java program to find whether entered number is palindrome or notis palidrome in javapalindromecutting 28s 29 in javajava rmi palindrome programjava program to check string is palindrome or notjava number palindromeplaindrome a string in javapalindrome character wrapper class in java examplejava program to find plaindrome