Elephant.java
public void dropMousetrap()
    {
        if (inventory() > 0)
        {
            maze.grid[getX()][getY()] = new Mousetrap();
            mousetraps = inventory() - 1;
        }
        else System.out.println(NO_MTRAPS);
    }
/**
     * Drop a mousetrap at the current coordiante 
     * update the inventory accordingly!
     */
Drop a mousetrap at the current coordiante
update the inventory accordingly!
Drop a mousetrap at the current coordiante update the inventory accordingly!
public void dropMousetrap()
    {
        if (inventory() > 0)
        {
            maze.grid[getX()][getY()] = new Mousetrap();
            mousetraps = inventory() - 1;
        }
        else System.out.println(NO_MTRAPS);
    }
public void dropMousetrap ( ) { if ( inventory ( ) > 0 ) { maze . grid [ getX ( ) ] [ getY ( ) ] = new Mousetrap ( ) ; mousetraps = inventory ( ) - 1 ; } else System . out . println ( NO_MTRAPS ) ; }
Drop a mousetrap at the current coordiante
 update the inventory accordingly!
Drop a mousetrap at the current coordiante update the inventory accordingly!