Code (Java):
import java.util.*;
public class HeadsOrTails {
public static void main (String[] args){
int track = 0;
int heads = 0;
int tails = 0;
int max = 0;
boolean catch = false;
do {
Scanner sc = new Scanner(System.in);
try{
System.out.println("enter number of throws: ");
max = sc.nextInt();
}
catch(InputMismatchException exception){...
Problem beim Deklarieren von einem BOOLEAN
0 commentaires:
Enregistrer un commentaire