/**
 * @file FileName.java
 * @author samov004
 * @version 1.0.0
 * @date 9/9/15
 */

package com.samovich.basics.concepts.objects.treehouse;

public class PezDispenser {

    private String characterName;

    // Constructor
    public PezDispenser(String characterName){
        this.characterName = characterName;
    }

    // Getter
    public String getCharacterName() {
        return characterName;
    }

}

/**
 * @file FileName.java
 * @author samov004
 * @version 1.0.0
 * @date 9/9/15
 */

package com.samovich.basics.concepts.objects.treehouse;

public class PezDispenser {

    public static final int MAX_PEZ = 12;
    private String characterName;
    private int pezCount;

    // Constructor
    public PezDispenser(String characterName){
        this.characterName = characterName;
        this.pezCount = 0;
    }

    // Getter
    public String getCharacterName() {
        return characterName;
    }

    public void load(){
        this.pezCount = MAX_PEZ;
    }
}

Add constant to the class
Add constant to the class
