StringTokenizer in a Palindrome program
Alright, this is my first time posting on here... haha, and i'm not 100% on how to exactly ask a question on this.. but anyhow, for anybody that does'nt know, a palindrome is a word that is spelt the same backwards and forwards.. like racecar. so i have this file and i am supposed to check if the words in it are palindromes using the stringtokenizer... so far i thought i had it until it only goes through the loop one time to check if it is a palindrome or not... where should i be putting the palindrome = isPalindrome(tokener.nextToken()); and the line = file.readLine(); so that it goes back through the loop?? ... i think thats what my problem is anyways. :confused: