collections
Class Gerbil

java.lang.Object
  extended by collections.Gerbil

public class Gerbil
extends java.lang.Object

Part of Exercise 11.2 in the book


Constructor Summary
Gerbil(int no)
          Constructor for objects of class Gerbil
 
Method Summary
 void jump()
          Method that tells which number jumps
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gerbil

public Gerbil(int no)
Constructor for objects of class Gerbil

Parameters:
no - the gerbil number
Method Detail

jump

public void jump()
Method that tells which number jumps