I am designing a program in JAVA that captures results in about 10 iterations. At the end of these iterations all the results must be written into a log file.
If any ex
You're looking for the try-catch block. See, for example, this tutorial.
try
catch