This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Dear Friends, I wanted to know if there is some way of validating a string that the user has entered. I want to check at runtime if the string entered will not generate compilation errors. I do not want the dynamically generated class of mine which has this string in it to fail during compilation. Is there a method in some standard classes to do this. I am lost. Please help me on this. Thanks
You want to check at runtime if the string will not generate compile errors??? I don't understand. Heck! If the string generates compile errors, you will not even get to runtime. It all depends on what you mean by validation. You can check a string for null, spaces, or even check for a specific length. Any good textbook should get you what you need.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley