public class Rule
{
    public Rule (char name)
    {
        _name = name;
    }

    public final char getName ()
    {
        return _name;
    }

    private char _name;
}
public class Rule
{
    public Rule (int number)
    {
        _number = number;
    }

    public final int getNumber ()
    {
        return _number;
    }

    private int _number;
}
Update Rule.java