Comment on Tutorial - Palindrome String in Java By Grant Braught



Comment Added by : vamsi gude

Comment Added at : 2012-03-20 18:27:24

Comment on Tutorial : Palindrome String in Java By Grant Braught
This should save some time

class palindrome
{
public static void main(String[] args)
{
System.out.println("\n"+"enter the value");
String abc=args[0];
String def=new StringBuffer(abc).reverse().toString();
System.out.println(def);
System.out.println(abc);
if(abc.equals(def))
System.out.println("yes its not a palindrome");
else
System.out.println("No, it is a palindrome");

}
}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. thank you
View Tutorial          By: cutiegurl at 2011-01-18 20:23:39

2. everyone should appreciate this
View Tutorial          By: Udara at 2010-10-18 01:15:09

3. Hi i have created the 5 files and in main program
View Tutorial          By: Anandkumar at 2011-09-10 05:13:59

4. hi, IF ANY ONE REALLY INTRESTED TO RUN THIS PROGRA
View Tutorial          By: sunil kumar sahu at 2010-10-09 11:50:56

5. You should add the mime type as follows:

View Tutorial          By: Anonymous at 2009-03-19 08:30:35

6. Thanks a lot. In a very Simple way you explained.<
View Tutorial          By: Shoaeb uddin at 2012-01-13 18:53:45

7. Nice Intro to start J2Me
View Tutorial          By: Mak at 2009-07-04 10:36:00

8. yes , this article is good & very help ful to
View Tutorial          By: Laxmipriya at 2011-05-02 02:36:36

9. the article is very useful...!
View Tutorial          By: pravin salame at 2011-05-20 11:58:28

10. java use real world object ............
View Tutorial          By: yunus khan at 2012-12-07 08:24:47