Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class HogsVsTigersTest {
- public static void main(String[] args) {
- Tigers tiger=new Tigers();
- Hogs hog = new Hogs();
- tiger.speak1();
- hog.speak1();
- tiger.speak2();
- hog.speak2();
- tiger.TD();
- tiger.TD();
- hog.TD();
- hog.TD();
- tiger.FG();
- hog.FG();
- hog.FG();
- System.out.println("The final score is " + hog.hogScore + " - " + tiger.tigerScore);
- System.out.println("Winner***********Hogs");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement