//ask for input String initialHunger = JOptionPane.showInputDialog("Please enter the initial hunger of the fish from 1-10, where 10 is the highest:"); String initialAggressivness = JOptionPane.showInputDialog("Please enter the initial Aggressiveness of the fish from 1-10, where 10 is the highest:"); String initialLaziness = JOptionPane.showInputDialog("Please enter the initial Laziness of the fish from 1-10, where 10 is the highest:"); try { //parse input into a number int Hunger = Integer.parseInt(initialHunger); int Aggressiveness = Integer.parseInt(initialAggressivness); int Laziness = Integer.parseInt(initialLaziness); int foodReduce = 0; Boolean More =true; } catch (NumberFormatException e) { System.out.println("Use numbers only you twat!"); } //make a new fish based on input Bettafish Bettafish1 = new Bettafish(Hunger, 10, Aggressiveness, Laziness); //print output and status System.out.println("Current BettaFish Status:"); System.out.println("\t"+"Current hunger of the Bettafish is " + Bettafish1.returnHunger()); System.out.println("\t"+"Current food amount of the Bettafish is " + Bettafish1.returnFoodAmount()); System.out.println("\t"+"Current aggressiveness of the Bettafish is " + Bettafish1.returnAggressiveness()); System.out.println("\t"+"Current laziness of the Bettafish is " + Bettafish1.returnLaziness()+ "\n");