| | |
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 |
-xlint actionlistener android api applet application array arrays automation bi binary blackberry block bluetooth character class client code compile compiler component consumer database desktop developmenthelp eclipse error fractal freeze ftp functiontesting game gameprogramming givemetehcodez graphics gui health html ide image integer j2me j2seprojects java javac javaee javaprojects jetbrains jni jpanel jtable julia learningresources lego linked linux list mac main map method methods mobile myregfun netbeans notdisplaying number online printf problem program project qt recursion researchinmotion rotatetext rsa scanner screen server set singleton sms sort spamblocker sql string swing system textfields threads time title tree tutorial-sample update variablebinding windows working xor






