The following simple program, which is supposed to create a 20-element array that it fills with random integer values, contains a number of distinct errors. Some of the mistakes will cause an error message at compilation time, while others may cause an error at execution time. Find (and fix) all of them!
public static void main (String  args)
double  r;
for (int i = 0; i <= r.length(); i++)
r[i] = Math.random * 100;