Saturday, February 19, 2011

Java code to check whether give number is palindrome number or not



Palindrome program in java



import java.io.*;




class Test {



public static void main(String[] args) throws IOException {



int num,r,sum=0,temp;

System.out.println("Enter a number:");

BufferedReader br=new BufferedReader(new InputStreamReader (System.in));

num=Integer.parseInt(br.readLine());

temp=num;



No comments:

Post a Comment