Home Tutorialhelp Comment Pallindrome made easy

 
 

Comment

qwerty
Pallindrome made easy,
March 23, 2010 at 11:06 PM

Thtz a very difficult way to solve an easier problem.....

it can be something like this


public class pallindrome
{
public static void main(String k[])
{
using_StringBuilder();
using_array();
}
public static void using_array()
{
System.out.println("Using Old C like Array");
String str="100001";
char [] a=str.toCharArray();
String str1="";
for(int i=a.length-1;i>=0;i--)
{
str1=str1+a[i];
}
if(str.equalsIgnoreCase(str1))
{
System.out.println("Pallindrome");
}
else
{
System.out.println("No Pallindrome");
}
}
public static void using_StringBuilder()
{
System.out.println("Using Java Like StringBuilder");
String str="12321";
char [] a=str.toCharArray();
StringBuilder strbld=new StringBuilder();
for(int i=a.length-1;i>=0;i--)
{
strbld.append(a[i]);
}
String str1=strbld.toString();
if(str.equalsIgnoreCase(str1))
{
System.out.println("Pallindrome");
}
else
{
System.out.println("No Pallindrome");
}
}
}

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java-Tutorials

Java made easy
RoseIndia has made learning Java easy with its online Java course, Java... tutorials along with Java course that helps all the beginners in Java to understand the language and has made learning Java very easy. A beginner just has to go 

Java Beginners

palindrome - Java Beginners
palindrome  example of java program if it is a palindrome or not palindrome   Hi friend, Example to check the number is a palindrome...://www.roseindia.net/java/beginners/Palindrome.shtml Thanks Amardeep   

Java Beginners

palindrome - Java Beginners
+ " is not a palindrome"); } } } For more information on Java visit to : http://www.roseindia.net/java/beginners/ Thanks Thanks... is palindrome. A word is said to be palindrome if it reads the same forward 

Java Beginners

palindrome - Java Beginners
palindrome in java code  I need an example of palindrome in Java ...;& (digit2 == digit4)){ System.out.print("Number is palindrome!"); } else{ System.out.println("Number is not palindrome!" 

Java Beginners

palindrome - Java Beginners
palindrome  determines whether or not it is a palindrome. if the number is not five... == digit4)){ System.out.print("Number is palindrome!"); } else{ System.out.println("Number is not palindrome!"); } } catch(Exception e   

Java Beginners

palindrome - Java Beginners
palindrome  Write a program to find whether a given string is a palindrome or not  Hi Friend, Try the following code: import java.util.*; public class CheckPalindrome{ public static void main(String[] args 

Java Beginners

complete the code (palindrome) - Java Beginners
complete the code (palindrome)  Write a program that checks if a word is palindrome. A word is said to be palindrome if it reads the same forward...: noon noon is a palindrome. Enter a word: moon moon is not a palindrome 

Java Beginners

palindrome - Java Beginners
palindrome  import java.io.*; class Palindrome { System.out.println("Enter a word:"); BufferedReader br=new BufferedReader(new InputReaderStream(System.in)); String word; word=br.readLine(); public static void main 

Java Beginners

To find palindrome no in a file - Java Beginners
To find palindrome no in a file  hi all i am having a problem...I wanted to write one java program where i have to count the no of palindrome in a file. I tried it with my own but not able to get result.pls help me out   

Java Beginners

Finding all palindrome prime numbers - Java Beginners
Finding all palindrome prime numbers  How do i write a program to Find all palindrome prime numbers between two integers supplied as input (start and end points are excluded 

Java Beginners

java palindrome
java palindrome  sir i need java program to print 1)integer palindrome 2)string palindrome 

Java-Tutorials

Palindrome program in Java
Palindrome program in Java helps programmers to determine if a number.... The logic used in Java program behind finding a number or sting is palindrome... of Palindrome program in Java: import java.io.*; public class Palindrome { public 

Java Interview Questions

java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion 

Java Interview Questions

java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion 

Java Interview Questions

java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion 

Java Interview Questions

java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion 

Java Interview Questions

java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion 

Java Interview Questions

java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion 

Java Interview Questions

java program to check whether a number is pallindrome or not using recursion???????
java program to check whether a number is pallindrome or not using recursion???????  java program to check whether a number is pallindrome or not using recursion 

Java Beginners

Palindrome
Palindrome  program to verify palindrome 

Development process Questions

palindrome
palindrome  write a program to print palindrome numbers between 500 to 700 

Java Beginners

Easy Counting Java Program...Please Help? - Java Beginners
Easy Counting Java Program...Please Help?  As I said, I am a beginner at Java. I came across this problem that Im sure uses java. Could you please tell me the code to do this and possibly explain? How many ways 

Java Tips and Examples

Java Program to check Palindrome
Java Program to check Palindrome In this section, you will learn about palindrome in java and how to check any number that is palindrome or not. First of all what is palindrome number?, this is the number that the original number 

Java Beginners

palindrome
palindrome  how to write in string of palindrome?   import... is palindrome"); } else{ System.out.println("String is not palindrome 

Java Beginners

palindrome
palindrome  how to write in string of palindrome   import... is palindrome"); } else{ System.out.println("String is not palindrome 

Java Beginners

palindrome
palindrome  program to find the given string is palindrome...]; } if(st.equalsIgnoreCase(reversedSt)){ System.out.println("String is palindrome"); } else{ System.out.println("String is not palindrome 

Java Beginners

PALINDROME
PALINDROME  how to find palindrome of a number WITHOUT using a string... == reversedNumber){ System.out.print("Number is palindrome!"); } else{ System.out.println("Number is not palindrome!"); } } catch(Exception e){ System.out.println(e 

Java Tips and Examples

Palindrome Number Example in Java
Palindrome Number Example in Java    ... the palindrome number and how to determine any number is palindrome or not. First of all we are going to read about the palindrome number.  This is the number 

General

The Array Palindrome Number in Java
The Array Palindrome Number in Java       This is a Java simple palindrome number program. In this section you will read how to uses palindrome one dimensional array 

Java Beginners

examples - Java Beginners
it is a palindrome. if the number input is not 5 digits long, then display an error message... import javax.swing.*; import java.awt.event.*; public class Pallindrome... Pallindrome"); JButton button = new JButton("Calculate Pallindrome 

Java Beginners

Program to display palindrome numbers between some range
Program to display palindrome numbers between some range  Hi!I want a java program to display palindrome numbers between 100 to 1000.can you please explain me the logic with an example   import java.util.*; public 

Eclipse Plugins

Easy Struts
. Provide a global view of any Java project with Easy Struts support... Easy Struts         The Easy Struts project provides plug-ins for the Eclipse 

Log4j

Log4J Tutorials: Using Log4J in Easy Steps
Log4J Tutorials: Using Log4J in Easy Steps Log4j is a logging library for Java... Software Foundation. Log4j is one of best Java logging frameworks used... and efficient API for the Java developers allowing them to use Log4j easily 

Java-Tutorials

Java Programming video tutorial for beginners
for beginners in Java help them to understand Java step-by-step and in systematic way... application system, real time application, etc. It is easy to learn Java if you... that programmer already know much. But the Java programming video tutorial for beginners 

Swing AWT

easy way to make a JCombobox look like a JTextField?
easy way to make a JCombobox look like a JTextField?  Is there a good(and easy) way to make a JCombobox look like a JTextField? By this I mean.... works   Autosuggestion box in Java Swing 

Java Beginners

How to connect to database to my application if the database is made up in oracle
How to connect to database to my application if the database is made up... is made up in oracle   Hi Friend, Follow these steps: 1) Import the following packages in your java file:*** import java.sql.*; import 

IDE Questions

prime palindrome
prime palindrome  Hi I want to write a program that ask a user to input a number, the program then list all the prime numbers that are palindrome below the number entered. In pascal language Thanks 

IDE Questions

prime palindrome
prime palindrome  Hi I want to write a program in pascal that ask a user to input a number, the program then list all the prime number that are palindrome below the number entered. thks 

Java-Tutorials

Java Programming Tutorials for beginners
Java Programming tutorials for beginners are made in such a way... simple so that not only Java professionals but Java beginners can also learn it easily. For the beginners in Java we bring our best of the best collection 

Java-Tutorials

Java Course
made easy as you just have to watch a video where an experienced Java...Java Course provided at RoseIndia spreads into various levels from basic to professional to advance. These courses are tailor made for both beginners 

Java Beginners

To check a palindrome number?
To check a palindrome number?  program to check a number is palindrome or not using recursion?(wihout converting to string 

Java Beginners

Java for beginners
Java for beginners  Java for beginners Which is the best resource... am looking for the easy to learn Java tutorials. If you can suggest me the best Java video tutorial for beginners. Thanks   Hi, Here are the best 

Struts 2 Tutorials

Struts 2 Tutorial: Easy steps to learn Struts 2
Struts 2 Tutorial: Easy steps to learn Struts 2 Apache Struts 2 is a popular Java Model-View-Controller (MVC) framework used to build enterprise-ready Java... are Servlet API 2.4, JSP API 2.0 and Java 5. Struts 2 Tutorial at Roseindia.net 

Java-Tutorials

Java Tutorial Videos
Java Tutorial Videos provided by RoseIndia helps beginners in Java to learn the language in a very easy and interactive way. All the Java Videos... program and running it using command prompt. Tutorial for Beginners in Java 

Eclipse Plugins

Easy Eclipse Plugin
Easy Eclipse Plugin   ... it may easier to install the Server Java distribution. Eclipse J2EE tools..., with support of Enterprise Java Beans 3.0 and Aspect-Oriented Programming  Know 

Servlet Interview Questions

How Code Resuablity easy in servlet - Servlet Interview Questions
How Code Resuablity easy in servlet  Hi friends am newbie to servlet. How code reusability easy in servlet. why not in jsp.here reusabillity... was developed to execute the business logic. You can develop EJB, or Java Beans to process 

Java Beginners

java - Java Beginners
Java palindrome program code  Can anyone Explain me the Java palindrome with the help of an example or program code in Java.Thanks in advance!! ...; (digit2 == digit4)){ System.out.print("Number is palindrome!" 

Java Beginners

writig a program - Java Beginners
writig a program  Write an application that reads in a five digit integer and determines whether or not it is a palindrome. if the number is not five digits long, displays an error message indicating the problem to the user 

Java Tips and Examples

Beginners Java Tutorial
Beginners Java Tutorial     ... with the Java Programming language. This tutorial is for beginners, who wants to learn Java from scratch. In this beginners Java Tutorial you will learn how 

Java Server Faces - JSF

JSF Tutorials: Easy steps to learn JSF
JSF Tutorials: Easy steps to learn JSF JavaServer Faces or JSF is a web application based on Java programming language used for building component-based user... is a part of Java Platform and was formalized as a standard through the Java 

Java Beginners

Tutorial For Java beginners
Tutorial For Java beginners  I am beginners in Java. Is there any good tutorial and example for beginners in Java? I want to learn Java before Jan... of December 2013. Check the Java Beginners Java Tutorial section for tutorials 

Java Beginners

palindrome array problem
palindrome array problem  I'm having trouble figuring this assignment out. Can someone please help me? Generate (write the code) and save in an array Palidrome[250][5] all the 5 letter words using {a, b, c} Write the code 

Training

Online Java Training for Beginners
Online Java Training for Beginners The online java training for beginners... and benefits of Java. In this age of advanced technology, Java has made... for the beginners. The Online Java Programming course for the beginner's 

JSP-Tutorials

Roseindia JSP Tutorial
are made with an objective to help learners grasp the fundamentals of JSP in easy... for beginners as well as experienced programmers as the JSP tutorials... tutorials for you that makes it quite easy for you to create dynamic 

General

Java Basic Tutorial for Beginners
Java Basic Tutorial for Beginners - Learn how to setup-development environment and write Java programs This tutorial will get you started with the Java...) More tutorials for beginners Getting Started with Java Learn 

Java-Tutorials

Java beginners Course
Java beginners course at RoseIndia is one of the best way to learn Java... Java course helps novices to learn the language in a very easy and quick manner and that too from the comfort of their own. Anyone can avail online Java course 

Software Services

Outsourcing Writing to India Is Easy Now
Outsourcing Writing to India Is Easy Now Many people want to take outsourcing... and diligently. Globalization as well as internationalization has made the world... and international language, it will be easy if you deal with Rose India . Rose 

Java Beginners

computers - Java Beginners
computers  Write a Java program to implement stack operations. Use this stack to check whether a given string is a palindrome or not  Hi...); if(n == rev){ System.out.print("Number is palindrome!"); } else 

Java-Tutorials

Learn Java for beginners
Learning Java for beginners has become an easy task now, with the popularity... Java Beginners tutorial Home page... in the field of Java. With online training of Java, RoseIndia brings the course to your 

PHP Tutorial

It?s Easy to See Why You Should Learn PHP
and easy for anyone to learn how PHP can work. Here are some reasons why a person... as it possibly can. It will be easy for anyone to get a better looking site when PHP... things that relate to how a site is arranged and how changes can be made on a site 

Java-Tutorials

Java tutorials for beginners with examples
Java Video tutorials with examples are being provided to help the beginners learn the Java programming in an easy way. Java being the most popular and used..., methods, interface, variables, etc. Java tutorials for beginners with examples 

Java Beginners

java program - Java Beginners
java program  1.Write a program in java to input a sentence and find out how many palindromes are there in the sentence. 2. Write a program in java...; Hi Friend, Try the following codes: 1) Palindrome Example import 

Java Code Examples

Check whether the number is palindrome or not
Check whether the number is palindrome or not A palindrome is a word, phrase... is palindrome or not. You can check it in various ways but the simplest method...; } if (n == reversedNumber) { System.out.print("Number is palindrome 

Java Beginners

programme - Java Beginners
programme  java programme to implement stack operation?use stack...://www.roseindia.net/java/example/java/util/StackImplement.shtml Use following code to check whether the string is palindrome or not: import java.util.*; public 

Java Beginners

java - Java Beginners
java  how to easy learn java and understand?  Hi Friend, Please visit the following link and learn java: http://www.roseindia.net/java/ Thanks 

Java Beginners

Core java PALANDROM - Java Beginners
Core java PALANDROM  1.i want program of palandroam? i want source code?plz reply 2.i want program of promenubers?i want source code?plz reply  Hi Friend, Try the following code: 1)Palindrome import java.util. 

Java-Tutorials

Java projects for beginners
In this tutorial you will be briefed about the Java projects for beginners... and complicated Java, can be become easy with the help of this tutorials which have been... is more tutorials for Java coding for beginners What 

Java Beginners

a java program - Java Beginners
for more information. http://www.roseindia.net/java/beginners/PrimeNumber.shtml... a java program  well sir, i just wanna ask you something regarding... about the second line... i have made my program but not able to click 

Java Beginners

string - Java Beginners
string  WAP to enter a sentence & print the no. of palindrome words it contains.  Hi Friend, Try the following code: import java.util.*; class CountPalindromes{ public static void main(String[] args){ int 

Java Beginners

java - Java Beginners
core java little bit but now i m confused as i don't know from where shud i start.   Easy boss. U r telling u stood first in d race & asking others "HOW SHOULD I WALK?". If ur comfortable with C++(core java) then its too easy 

Java Beginners

java - Java Beginners
java   Dear sir, I have made an application using java and want to make it run on other machine, as we know java based applications dont run untill we install JRE, so is there any way to run java application without having JRE 

Java Beginners

Add two big numbers - Java Beginners
Add two big numbers - Java Beginners  Hi, I am beginner in Java and leaned basic concepts of Java. Now I am trying to find example code for adding big numbers in Java. I need basic Java Beginners example. It should easy 

Java Beginners

java encoding - Java Beginners
java encoding  how to encode String variable to ASCII,FromBase64String,UTF8  Hi It's very easy to convert String Variable into ASCII...://www.roseindia.net/java/java-conversion/CharToASCIIi.shtml Your comments are welcome regarding 

Java Beginners

Plz help with third Question - Java Beginners
that determines whether or not a string is a palindrome. (A palindrome reads...)){ System.out.println("String is Palindrome"); } else{ System.out.println("String is not a Palindrome"); } } } 2) import java.io.*; import java.util.regex. 

Java Beginners

prime pal - Java Beginners
prime pal  1) WAP to print all prime-palindrome number range between 1-500 2) WAP to print all prime-Fibonacci number range between 1-500   Hi Friend, 1)Prime and Palindrome: import java.util. 

Java Beginners

how to write a function to print for finding the longest palindrome in the given string
how to write a function to print for finding the longest palindrome in the given string  how to write a function to print for finding the longest palindrome in the given string 

Java Beginners

core java - Java Beginners
core java  public static void main(String[] args) why are write only string[].. why cann't write int,float   Hi Friend, Because it is very easy to convert string to other data type. Thanks 

Java Beginners

Java Bean - Java Beginners
Java Bean  Sir, How can i add a java bean into a target GUI.... Thanking you Pabitra Kr Debanth.   Hi friend, Java Bean classes must be made serialization so that they support persistent storage. To make use 

Java Beginners

Java - Java Beginners
java. While designing it, i came across a problem. I tried to store the functional dependencies using the hashmap class. e.g. for a dependency A->B, i made... A->B. This i knew after reading the java docs. So is there any workaround 

Java Beginners

java - Java Beginners
java  java programme to sort set of numbers in ascending order  Hi Friend, Sorting in java is very easy because of the use of Collections.sort() method. Here we are sending you the sample code to sort some numbers 

Java Beginners

java - Java Beginners
components are rectangular 5) Swings components are made in pure java...java   What is the different between swing and awt?  Hi... Swing is also called as JFC?s (Java Foundation classes). 2) AWT components use 

Java-Tutorials

Core Java Tutorial for Beginners
Core Java tutorials for beginners help you to learn the language in an easy way giving you simple examples with explanation. Core Java is the basic of Java language. Java is an Object Oriented Programming language that is made open 

Java Beginners

java features - Java Beginners
program malfunction. the java designers made hard attemp to alter...java features  Why java is called as neutral language  hai frnd.. JAVA is not neutral language...but ARCHITECTURE-NEUTRAL.. 1 of the main 

Java Interview Questions

Beginners in Java
Beginners in Java  Hi, I am beginners in Java, can someone help me... tutorials for beginners in Java with example? Thanks.   Hi, want to be command over Java, you should go on the link and follow the various beginners 

Java Beginners

java beginners - Java Beginners
the following links: http://www.roseindia.net/java/beginners/StringTokenizing.shtml http://www.roseindia.net/java/beginners/tokenizingjavasourcecode.shtml...java beginners  what is StringTokenizer? what is the funciton 

Java Beginners

: Java Compilation error. - Java Beginners
on java visit to : http://www.roseindia.net/java/beginners/ http://www.roseindia.net/java/beginners/howtoaccessstaticmethod.shtml Thanks   static...: Java Compilation error.  what is the difference between static 

Struts Questions

configuring ready-made struts application - Struts
configuring ready-made struts application  I have a source of Struts project (web based apps) and need to configure it in order to be accessed via browser. The only information that I have was, the project is built on Struts 

Java Beginners

Hiiiii - Java Beginners
wanted to keep Java simple and found that operator overloading made code more...Hiiiii  Hi, tell me all operator are overloaded in java Thanks   Hi Ragini, It is true that Java does not allow operator 

Java Beginners

Java Core Code - Java Beginners
Java Core Code  My question is that how can i calculate and display the true downloading speed from my download manager(I made it in java using core methods no struts or any adv technology used) using java methods 

Java Beginners

Java compile error - Java Beginners
Java compile error  I am having trouble compiling the Java project... Kindly let me know what is the problem? Secondly, do you know any easy method to compile Java on Mac besides using the Terminal 

Java Beginners

Java programming - Java Beginners
Java programming  The Problem Write a program that asks the user to enter two words. The program then prints out both words on one line. The words.... The error reports should be made using JOptionPanes, e.g. 

UML Questions

Wt is easy way to learn UML
Wt is easy way to learn UML  Hello Friends, Please guide me,How to learn UML in easy way and efficent way. Thanks in Adavance Thanks, Abiram 

Java Beginners

java - Java Beginners
java  Hi, i have some problem in my code. i have made JPasswordField to check the right password. for it i have made an array in which i have choices for the password, but it shows the message "Invalid Password" always whether i 

Java Beginners

files - Java Beginners
files  Why do we require files to store data?  Hi friend, files to store data, easy to find and access them. Thanks 

OpenSourceSoftware

Open Source web Templates
template is a pre-made website with essentially no content. This makes it easy... in Java Velocity is a Java-based template engine. It permits web page designers to reference methods defined in Java code. Velocity can be used to generate web 

Java Beginners

java project - Java Beginners
java project  HAVE START A J2ME PROJECT WITH NO CLEAR IDEA .. ANY ONE GUIDE ME my id is shahzad.aziz1@gmail.com replay on my id plz A detail... at first sight easy to understand and self-explanatory. The Application as well 

Java-Tutorials

Learn Java Programming
knowledge of these languages then it will be comparatively easy for you to learn Java...If you are a beginner in Java language and want to become a professional in it, Learn Java programming online with tutorials and simple examples 

Java Beginners

JAVA Error - Java Beginners
JAVA Error  i have made my own calculator GUI..and i want the text on the button to have different colors just like the calculator in windows...: http://www.roseindia.net/java/ Thanks.   Hello Just use 

Java Beginners

java - Java Beginners
will understand my problem. i have made sql table as under create table sdmpl... values(1,'Adarsh Nagar') and my java code is as under: import java.io. 

Java Beginners

Java - Java Beginners
Java   how can i make this java program open an image file and open a website like yahoo? GrFinger Java Sample (c) 2006 Griaule Tecnologia Ltda... environment . This sample is provided with "GrFinger Java Fingerprint Recognition 

Advertisements Advertisements
 

 

 

DMCA.com