I need help on this program it takes in a string e.g abc 121 123 abba acca.
Then the output is Valid Palindromes are abba acca (It doesnt count numbers as palindromes)
How do i seperate each word without using arrays?
I wrote this code for the start but it only takes in the above string and writes it backwards which is what but i need to know how do i get it not to count the numbers and the words that arent palindromes i need the long version dont use scanners or arrays thanks
System.out.println("Enter a string");
string = EasyIn.getString();
for(index = name.length()-1 ;index >= 0 ; index--)
{
System.out.print(" "+ name.charAt(index) ) ;
}
Thanks a million