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. Can I use my Nokia 6300 as my GSM Modem???? Please
View Tutorial          By: deKi at 2009-03-17 03:54:59

2. its not working.
View Tutorial          By: raja at 2012-08-29 11:44:45

3. i want code to Migration from IPV4 to IPV6 at appl
View Tutorial          By: i want code , can you send me at 2015-01-23 14:38:48

4. Very very nice example thank you
View Tutorial          By: Fabrice at 2010-12-03 03:36:18

5. nice article..
View Tutorial          By: yummy at 2010-01-05 21:18:35

6. thank you man.
View Tutorial          By: Hariharan at 2012-08-03 01:39:16

7. Dear admin,
your Recaptcha design is not go

View Tutorial          By: surendra kumar sharma at 2013-02-02 05:58:35

8. I tried to create an object on my 6th code but i a
View Tutorial          By: AARON VICU√ĎA at 2009-03-24 05:20:24

9. Can you explain with increment and decrement opera
View Tutorial          By: Sathish Kumar at 2013-09-01 07:40:42

10. This is very simple code and very much understanda
View Tutorial          By: Prem Anand at 2013-05-04 11:21:16