Comment on Tutorial - Palindrome String in Java By Grant Braught
Comment Added by : Manoj
Comment Added at : 2013-01-07 02:18:00
Comment on Tutorial : Palindrome String in Java By Grant Braught
simple way friends:
public class palindrome {
public static void main(String[] args) {
String s="malayalam";
int count=0;
int gee=0;
for(int i=0;i<s.length()/2;i++)
{
char[] f=s.toCharArray();
if(f[i]==f[s.length()-1-i])
{
count++;
}
else
{
gee++;
}
}
if(gee>0)
{
System.out.println("not palindrome");
}
else
{
System.out.println("palindromr");}
}
}
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. Error loading SolarisSerial: java.lang.Unsatisfied
View Tutorial By: Rahul at 2008-09-09 04:05:35
2. if suppose i am having connection pool max size 30
View Tutorial By: Shrikant at 2012-07-20 12:09:33
3. it's emergency
plz explain delimiter in tok
View Tutorial By: sajad at 2013-02-03 05:56:44
4. how to set the report for particularn form feilds
View Tutorial By: mathivanan at 2012-09-21 00:05:07
5. Once i run it gives the following error.Why "
View Tutorial By: IDK at 2008-12-18 19:56:12
6. good work done.
View Tutorial By: Nitin at 2009-08-29 10:51:41
7. it is nice but please give simple example like are
View Tutorial By: red at 2009-12-03 23:07:37
8. Thanks for a nice article !!!
View Tutorial By: Piyush Sharma at 2011-12-15 12:24:06
9. Dear Sir,
I have done my B.E Degree
View Tutorial By: amit at 2012-02-03 11:07:35
10. Very helpful!!
View Tutorial By: mahesh at 2012-07-12 06:24:50