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.
Now, I want to restrict user from entering more than 1 comma continuously,
when user enter character, just check the previous character. if it is comma show error
[another way is]
just take the value which is *entered* by user then split then just any value is "" or " " if it is then show error