If you mean that you can't figure out how to make the program exitwithout continuing, use System.exit(int status), where status=0 meansnormal termination and status=nonzero means abnormal termination.