Advertisement
Guest User

Untitled

a guest
Nov 25th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1.  
  2. public class PetMaster {
  3.  
  4.     /**
  5.      * @param args
  6.      */
  7.     public static void main(String[] args) {
  8.         String petReaction;
  9.         Pet myPet = new Pet();
  10.         myPet.eat();
  11.         petReaction = myPet.say("Cheek-Chee-reek!");
  12.         System.out.println(petReaction);
  13.         myPet.sleep();
  14.  
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement