public class Reaction
{
    public Reaction (Chemical name, Chemical[] reactants, int[] quantities)
    {
        _name = name;
        _reactants = reactants;
        _quantities = quantities;
    }

    private Chemical _name;
    private Chemical[] _reactants;
    private int[] _quantities;
}
public class Reaction
{
    public Reaction (Chemical name, int quantity, Chemical[] reactants, int[] quantities)
    {
        _chemicalCreated = name;
        _quantityCreated = quantity;
        _reactants = reactants;
        _quantities = quantities;
    }

    private Chemical _chemicalCreated;
    private int _quantityCreated;
    private Chemical[] _reactants;
    private int[] _quantities;
}
Update Reaction.java