1. Use code tags.
2. Read what System.exit(0) do. It kills the current process that means your application will be quit as soon as it will reach this statement and no further execution of any...