FileDocCategorySizeDatePackage
TwoDArrays.javaAPI DocExample565Sat Nov 25 12:56:24 GMT 2000None

TwoDArrays

public class TwoDArrays extends Object

Fields Summary
static double[]
data
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] av)

	     
		// Each row in the initialization winds up as a column
		// (see the diagram in the course notes!!), so this
		// is a 3 x 2 array.
		System.out.println("Width   = " + data.length);
		System.out.println("Height  = " + data[0].length);
		// The last element is data[2][1], NOT [1][2]!
		System.out.println("d[2][1] = " + data[2][1]); // prints 98.6