コード例 #1
0
 private void generateDog(Dog fido) {
   System.out.println("Assigning you a New Dog.. Wait");
   try {
     Thread.currentThread().sleep(100);
   } catch (InterruptedException e) {
     e.printStackTrace();
   }
   System.out.println("This is your new Dog");
   System.out.println("\tName: " + fido.getName());
   System.out.println("\tBreed: " + fido.getBreed());
   System.out.println("\tAge: " + fido.getAge());
   System.out.println("\tHeight: " + fido.getHeight());
   System.out.println("\tWeight: " + fido.getWeight());
 }
コード例 #2
0
 private void displayInstructions(Dog fido) {
   System.out.println("What is the command you want your dog " + fido.getName() + " to execute?");
   System.out.println("\tPress 1 for Attacking");
   System.out.println("\tPress 2 for Feeding it");
   System.out.println("\tPress 3 for Pulling the dying trick");
   System.out.println("\tPress 4 for Cloning your dog (Yes, Its possible)");
 }