import java.util.Scanner; import java.lang.Exception; import java.math.BigInteger; public class Main { public static void main(String [] args){ try{ Main instance = new Main(); // create an instance to access non-static // variables // Use java.util.Scanner to scan the get the input...
Given an integer number and we have to check whether it is palindrome or not using java program.Check palindrome number in javaimport java.util.Scanner; class CheckNumberPalindromeOrNotPalindromeClass{ public static void main(String[] args){ //rev variable is used to store reverse of actual_...
Using string buffer , import java.util.*; import java.lang.*; class Seventeen { public static void main(String args[]) { Scanner sc=new Scanner(System.in); String str=sc.next(); String reverse = new StringBuffer(str).reverse().toString(); if(str.equals(reverse)) System.out.println(...