Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Bon j'ai un peu changé parce que je me suis rendu compte que j'avais une fonction qui faisait ça déjà
- public static int ft_rejouer()
- {
- int n;
- n = 2;
- System.out.print("Voulez vous rejouer? ");
- do
- {
- System.out.print("(1/0 pour Oui/Non) : ");
- if(in.hasNextInt())
- {
- n = in.nextInt();
- return(n);
- }
- else
- String debug = in.next();
- } while(n != 1 && n != 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement