Object-Oriented Programming in Java

A DataRow object will hold a y value and an array (or ArrayList, if you like) of x values. (For the example above, this array would only be of length 1, but other data sets may have more than one x variable, so we really do need an array.) A DataSet will hold an array (or ArrayList) of DataRow objects. ................
................