001    package collections;
002    /**
003     * Part of Exercise 11.2 in the book
004     * 
005     * @author Kristian Torp, torp (at) cs (dot) aau (dot) dk
006     * @version 1.0
007     */
008    public class Gerbil {
009            /** the gerbil no. */
010            private int no;
011    
012            /**
013             * Constructor for objects of class Gerbil
014             * 
015             * @param no
016             *            the gerbil number
017             */
018            public Gerbil(int no) {
019                    this.no = no;
020            }
021    
022            /**
023             * Method that tells which number jumps
024             */
025            public void jump() {
026                    System.out.println("Hop gerbil no: " + no);
027            }
028    }