Tuesday, January 20, 2009

Easiest Syntax?

Just wondering if I should show the syntax for declaring arrays as:

float[][] myArray;
myArray = new float[200][200];

or as:

float[][] myArray = new float[200][200];

I wonder what new students would find easier? Perhaps both?

1 comment:

monkstone said...

Then theres the alternative,
String[] group = {"Fish", "Wife", "Tea"};
I guess you should present all three!!!
Unlikely grouping heh heh!