Advertisement
therrontelford

Hogs Vs Tigers

Sep 12th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1.  
  2. public class HogsVsTigersTest {
  3.  
  4.     public static void main(String[] args) {
  5.        
  6.         Tigers tiger=new Tigers();
  7.         Hogs hog = new Hogs();
  8.        
  9.        
  10.         tiger.speak1();
  11.         hog.speak1();
  12.         tiger.speak2();
  13.         hog.speak2();
  14.         tiger.TD();
  15.         tiger.TD();
  16.         hog.TD();
  17.         hog.TD();
  18.         tiger.FG();
  19.         hog.FG();
  20.         hog.FG();
  21.        
  22.         System.out.println("The final score is " + hog.hogScore + " - " + tiger.tigerScore);
  23.         System.out.println("Winner***********Hogs");
  24.  
  25.     }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement