how to stop code excution in java android code example Example: java how to stop code System.exit(0);