Home Answers Viewqa Java-Beginners java program 12

 
 


Suresh Shahapurkar
java program 12
1 Answer(s)      a year and 9 months ago
Posted in : Java Beginners

Write a java program to verify whether the given number is palindrome or not by taking from input Buffer reader(console).

View Answers

August 23, 2011 at 11:34 AM


import java.io.*;
public class CheckPalindrome{
    public static void main(String[]args) throws Exception{
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    System.out.print("Enter String: ");
    String st=br.readLine();
    String str[]=st.split("");
    String reversedSt="";
    for(int i=str.length-1;i>=0;i--){
        reversedSt+=str[i];
    }
    if(st.equalsIgnoreCase(reversedSt)){
    System.out.println("String is palindrome");
    }
    else{
        System.out.println("String is not palindrome");
      }
    }
}









Related Pages:
java program 12
java program 12  Write a java program to verify whether the given number is palindrome or not by taking from input Buffer reader(console).   import java.io.*; public class CheckPalindrome{ public static void main
Java Programming, Chapter 12 Exercises
Programming Exercises For Chapter 12 THIS PAGE CONTAINS programming exercises based on material from Chapter 12 of this on-line Java... in B. Suppose that A and B are variables of type set in Java
Java Programming, Chapter 12 Quiz
Quiz Questions For Chapter 12 THIS PAGE CONTAINS A SAMPLE quiz on material from Chapter 12 of this on-line Java textbook. You should... by generic programming and what is the alternative? Question 2: Java does
Java Programming: Chapter 12 Index
Chapter 12 Generic Programming and Collection Classes HOW TO AVOID.... In this chapter, we'll look at Java's attempt to address this problem. Contents of Chapter 12: Section 1: Generic Programming Section 2: List and Set Classes
Java Interview Questions - Page 12
Java Interview Questions - Page 12   .... It is one of solutions. Question:  Is Java a super set... the responsibility of satisfying the post conditions. In Java
Java Programming, Chapter 12 Quiz Answers
Sample Quiz Answers For Chapter 12 THIS PAGE CONTAINS SAMPLE ANSWERS to the Quiz on Chapter 12 of this on-line Java textbook. Note..., and so on. Question 2: Java does not support generic programming
java program
java program  write a java program to get current date and time in the following format: current year is:2007 current month is:12 current date is:23 current hour in 12 hour format is:6 current hour in 24 hour format is:18 current
Java program
Java program  I'm having troubles writing a program that upon entering your height in inches it changes your height to feet and inches, and then also...; double inch = (cm/2.54) - ((int)feet * 12); System.out.println
Q, 12 WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java
Q, 12 WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java  Q, 12 WAP to calculate addition of two distances in feets and inches using objects as functions arguments in java
Java Program - Java Beginners
Java Program  Create a program that will have the following: 1... / Oracle) 5. An interface (GUI) for data entry and display. The program will read a file of student names and save these on the database. The program should
java program 18 algorthm
java program 18 algorthm  writ a alogrithm for this program to get current date and time in the following format: current year is:2007 current month is:12 current date is:25 current hour in 12 hour foramt is :6 current hour in 24
java program to convert decimal in words
java program to convert decimal in words  write a java program to convert a decimal no. in words.Ex: give input as 12 output must be twelve
Java program - Java Beginners
Java program  Dear maam/Sir, I am a 2nd year Computer programming student and we are given an assignment, a program that will show... not that familiar with java environment.. My friend told me that you can help me with my
java program 18
java program 18  write a java program to get current date and time in the following format: current year is:2007 current month is:12 current date is:25 current hour in 12 hour foramt is :6 current hour in 24 hour format is :18
java program - Java Beginners
java program  plzzzzz help me on this java programming question? hello people.. can u plzzzzzzzzzzzzzzzzzzz help me out with this java programm. its due tmrw....... and i havent even get started on this program. i dont want
program
program  write a program different between to dates in terms of days in java
program
the program calculateTax which determines the tax on the gross pay. Define.... Assume an hourly rate of $12
program
program  WAP a java program to form 1/2+3/4+5/6+7/8 series
need a java program - Java Beginners
need a java program  Draw a bar chart for the following data using frames Year: 2000 2001 2002 2003 2004 2005 TurnOver:7 8 4 5 9 12
program
program  explanation of program on extending thread class   Hi Friend, Please go through the following link: Java Threads Thanks
program
program  write a java program to input a no. and print wheather the no. is a special no or not. (special no. are those no whose factorial of the sum of digit of the no is same as the original
write a program in java.
write a program in java.  arrange the natural n umber in 5x5 matrix as 21 22 23 24 25 20 7 8 9 10 19 6 1 2 11 18 5 4 3 12 17 16 15 14 13 i at centerd position and remaining arrange in anticlockwise direction.  
program - Java Beginners
program  a program to print 123454321 1234 4321 123 321 12 21 1 1  make sure about ur first line 123454321 or 1234554321   Hi punnet if query is correct then the code like
program
is working in Java department and salary is 10000". Instantiate the Employee class
program - Java Beginners
program  sir..can u tell me wat to do in this program.... i do not know what to do,,,,,, write a program to enter date ( date,month, and year...} } return this } function isDate(dtStr){ var daysInMonth = DaysArray(12) var pos1
combo program - Java Beginners
++){ day.addItem(i); } day.setBounds(10,10,10,10); for(int j=1;j<=12;j
Java Program - Swing AWT
Java Program  Write a Program that display JFileChooser that open...(KeyStroke.getKeyStroke(8,0),"insertAction"); list.setVisibleRowCount(12...); setIconTextGap(12); } public Component getListCellRendererComponent(JList
Java Program - Date Calendar
Java Program  A java program that display calendar.  Hi Friend, Try the following code: import java.awt.*; import java.awt.event.... static final ArrayList months; static { months = new ArrayList(12
Finding a Factorial using while loop
are going to find out the factorial of 12 by using the while loop. In while loop... the scriptlet to calculate the factorial of 12. In the scriptlet we generally writes a java logic in it. The output will be displayed by using the out implicit object
Magic number Java Program
Magic number Java Program  write a program that guesses what number... Is it in the list above? (yes or no): no 4 5 6 7 12 13 14 15 20 21 22 23 28 29 30 31 36 37... 252 253 254 255 Is it in the list above? (yes or no): yes 8 9 10 11 12 13 14 15
Java Program - Applet
Java Program  How to Draw various types of Charts Like pie,Line,Bar... the following links: http://www.roseindia.net/java/example/java/swing/draw-simple-bar-chart.shtml http://www.roseindia.net/java/example/java/swing/draw-pie
Chapter 12. Exceptions
Chapter 12. ExceptionsPrev Part I. Exam Objectives Next    Chapter 12. ExceptionsIdentify correct and incorrect statements or examples about exception handling
logic for pattern program
create this program in java without help whats the logic how can i understand... program how can i create any pattern program with in minute. like this 123454321 * 1234 4321 *** 123 321 ***** 12 21 *** 1 1 * 123321
connect ftp from java program
connect ftp from java program  Hi, I need to connect to the ftp and get the files through a java program.. I wrote the following code... import...) at org.apache.commons.net.SocketClient.connect(SocketClient.java:249) at FtpTest.main(FtpTest.java:12
connect ftp from java program
connect ftp from java program  Hi, I need to connect to the ftp and get the files through a java program.. I wrote the following code... import...) at org.apache.commons.net.SocketClient.connect(SocketClient.java:249) at FtpTest.main(FtpTest.java:12
java program for
java program for   java program for printing documents,images and cards
Java Program
Java Program  A Java Program that print the data on the printer but buttons not to be printed
a Java program
a Java program    Write a Java program to print even numbers from 2 to 1024? Write a Java program to print ? My Name is Mirza? 100 times? Write a Java program to print Fibonacci Series? Write a Java program to reverse a number
java program
java program  write a program to print 1234 567 89 10
details of my program - Java Beginners
array but it could make the program much longer note: i want to use the method..., 0.59, 1.99, 1.99, 2.49, 0.99}; Order[] orderObj = new Order[12]; Bell
java program
java program  how to write an addition program in java without using arithematic operator
java program
java program  write java program for constructor,overriding,overriding,exception handling
java program
java program  write a java program to display array list and calculate the average of given array
java program
java program  write a java program to display array list and calculate the average of given array
Java Program
Java Program  java program to insert row in excel sheet after identifying an object
java program
java program  java program to implement the reflection of a particular class details like constructor,methods and fields with its modifiers
java program
java program  Write a program to demonstrate the concept of various possible exceptions arising in a Java Program and the ways to handle them.  ... in Java
Finding a Factorial using while loop
; In this example we are going to find out the factorial of 12 by using... gets true. We are using the scriptlet to calculate the factorial of 12. In the scriptlet we generally writes a java logic in it. The output will be displayed
java program
java program  write a java program to compute area of a circle.square,rectangle.triangle,volume of a sphere ,cylinder and perimeter of cube using method over riding
java program
java program  write a java program to compute area of a circle.square,rectangle.triangle,volume of a sphere ,cylinder and perimeter of cube using method over riding

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.