package freegraph; /** * class used to hold a set of doubles for variables A-Z */ public class VariableValues { private double values[] = new double[26]; /** * returns the value of the variable ch. */ public double getValue(char ch) { return values[Character.toUpperCase(ch) - 'A']; } /** * sets the value of the variable ch. */ public void setValue(char ch, double value) { values[Character.toUpperCase(ch) - 'A'] = value; } }