Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

franklin brown

Greenhorn
+ Follow
since Nov 08, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by franklin brown

Hey everybody!
I'm a Java rookie floundering my way through my first Java class and I've smacked into a brick wall. I'm trying to write an application to test for numerical palindromes that are 5 characters long. I have gotten the input and output components together but cannot figure out how to do the testing. I'm trying to use loops or if/then statements to compare the first and 5th characters and 2nd and 4th characters to test for the palindrome but don't know how to divide the string into individual characters for the comparison. I was just curious if anybody had any ideas or if I'm going about this all wrong. Any assistance would be greatly appreciated - thanks in advance.
21 years ago
Hey everybody!
I'm a Java rookie floundering my way through my first Java class and I've smacked into a brick wall. I'm trying to write an application to test for numerical palindromes that are 5 characters long. I have gotten the input and output components together but cannot figure out how to do the testing. I'm trying to use loops or if/then statements to compare the first and 5th characters and 2nd and 4th characters to test for the palindrome but don't know how to divide the string into individual characters for the comparison. I was just curious if anybody had any ideas or if I'm going about this all wrong. Any assistance would be greatly appreciated - thanks in advance.
21 years ago