This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I wrote the following code for checking a Palindrome (i.e. a string remains the same when reversed). However, it runs correctly only for one iteration of the loop, in the next iteration it takes the old value of the String from the console and does not wait for reading the new value. I cant understand why ? Kindly explain. The code is :
[ August 16, 2008: Message edited by: Anand Shrivastava ] [ August 16, 2008: Message edited by: Anand Shrivastava ]