kahem42, on 10 July 2012 - 08:07 AM, said:
would someone allow me to send them all the project files and correct the errors would be very grateful
Haha! Good one.




3 Votes
Posted 10 July 2012 - 07:55 AM
Posted 10 July 2012 - 08:45 AM
kahem42, on 10 July 2012 - 11:38 AM, said:
Posted 10 July 2012 - 08:46 AM
Posted 10 July 2012 - 09:02 AM
Posted 10 July 2012 - 09:05 AM
Posted 10 July 2012 - 09:10 AM
try {
dangerousOperation(); // do something that might throw an exception
}
catch (UnmetExpectationException fse) // catch a particular exception
{ // deal with the situation here
logger.log("Operation failed: expected something, got something else.");
}
Posted 10 July 2012 - 09:18 AM
Posted 10 July 2012 - 09:18 AM
Posted 10 July 2012 - 09:26 AM
public static void main(String[] args)
{
try{
JFrame frame = new JFrame();
// put stuff in the frame
// turn the user loose on that stuff
// get some data from the user
// process the data - the problem you know about is here
// write processed data to a file
// exit
}
catch(Exception e)
{
e.printStackTrace();
}
// exit the program
}
