| | |
Error Checking for user input
![]() |
•
•
Join Date: Sep 2005
Posts: 2
Reputation:
Solved Threads: 0
Hello all, is that possible to help me out with Error Checking for user input? I am developing a peg solitaire program and now need a error checking for user input or for input file.
Either use try and catch.. or making another method.. can anyone give a me a hint or help me out here please.
Regards
Either use try and catch.. or making another method.. can anyone give a me a hint or help me out here please.
Regards
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
For something like that I would say some if else statements would work. Like:
Of course it would be cool to experiment making your own exception as EB said.
Java Syntax (Toggle Plain Text)
if (!card slot is already taken) { //do something } else { //do something else }
Of course it would be cool to experiment making your own exception as EB said.
![]() |
Similar Threads
- Custom error checking (C#)
- User Form error checking (PHP)
- Help with 1.pointers and 2.error checking (C++)
- error checking of user input (C++)
- Need Help With Error Checking User Input (C)
- MERGED: Deleting duplicates in an array (plz help me out!!!!!!!) (C)
Other Threads in the Java Forum
- Previous Thread: exception in thread "main" java.lang.NoClassDefFoundError
- Next Thread: Jni
| Thread Tools | Search this Thread |
account android applet application apps array automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card class classes client code collision columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error eventlistener exception expand fractal free game givemetehcodez graphics gui guidancer homework html ide image inheritance integer integration intellij j2me java javafx javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield jtree julia linux loop method midlethttpconnection migrate mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source oracle plazmic print problem program property ria scanner server set sharepoint smart sms smsspam sourcelabs splash sql sqlite subclass support swing testautomation textfield threads tree trolltech unlimited utility windows






