Ask a New Question

Question

does anyone know how to terminate a java program when the user input the wrong answer after x amount of tries
5 years ago

Answers

oobleck
exit()
You can return an exit code to indicate failure.

google can provide you with code snippets for almost whatever you want to do. You can be sure that someone has done it, and posted it. Also, the java documentation is excellent.
5 years ago
anonymous
ok thank you oobleck
5 years ago

Related Questions

How did the governments termination policy affect the native American populations 1. Many Native... Which quadrant does the terminal side of the angle lie if the angle is −330° (1 point) Responses... Termina la oración: Cada año, cuando yo era joven, nosotros fuimos a los parques. íbamos a los... is -0.07 a repeating or terminating decimal Termina la oración: En la Fiesta de San Fermín... (2 points) Responses hay gente y toros corriendo... Express 5 3 over 4 to a terminating decimal Él __________ termina de hablar por teléfono. ¡Habló dos horas! * 1 point a menudo mucho muy fi... Most transmission lines terminate in some kind of connector, a device that connects the cable to a p...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use