package hw1a; public class HW1A { public static void main(String[] args) { double r; int [] myArray = new int [50]; for (int i = 1; i < myArray.length; i++){ r = Math.random(); // generates a random number between 0 and 1 r = 100 * r; // thats now a random number between 0 and 100 myArray[i] = (int) r; // the integer part of r } System.out.println(numberOfOdds(myArray)); } static int numberOfOdds(int [] A) { // For this problem, write code here return 10; //I just put it there to avoid a compilation error } }