// I got it, the inner loop is just float not float[]
// I was trying to go too many dimensions deep in the inner loop
// that took 90 minutes to figure out
Code:
public class WeatherFan2{
static int count = 0;
static float average = 0;
public static void main(String[]args){
float[][] sample = new float[10][10];
for(int x = 0;x<10;x++){
for(int y = 0;y<10;y++){
sample[x][y]= (float)((Math.random()*100)+1);
}
}
//we now have a 10x10 2D array
loop:
for(float[] temperature:sample){
for(float t:temperature){
average +=t;
}
System.out.println(average/sample[count].length);
average =0;
}
}
}