This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If you enter an invalid number, the calls to parseInt() will throw a NumberFormatException. You can simply catch those exceptions and ask the user to try to enter a number again. Have you learned about exceptions yet?
any advice for a newbie or tip code? please sir need to know it badly..
Well, you pretty much decided to ignore my previous answer. And something tells me that if I do anything short of fixing your homework problem for you, you will probably ignore any hint / tip that I give you too.
Joined: Jul 09, 2009
actually sir i really dont ignore your tips...i've read it but then as a newbie to the programming world, it too hard for me to understand it...the site has the explanation on exception but no samples...i hope you understand me sir...
leo dacullo wrote:actually sir i really dont ignore your tips...i've read it but then as a newbie to the programming world, it too hard for me to understand it...the site has the explanation on exception but no samples...i hope you understand me sir...
The link is for a tutorial -- and as such it contains a lot of explanations. It also contains some really simple example codes at the end of the chapter.
Having lots of explanations and a few very simple examples .... is much better than that you are asking for... the code to fix your issue, with little to no explanation. No only will the explanation be lacking, but the sample is also not simple either.
The only advantage of what you are asking for is... your homework will be done. And you can move on without actually wasting time learning the subject.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: HELP!!!! how does Character.isLetter work? (need experts)