question archive Write a JAVA program that creates an array of size 100 that holds the following integers: 1-100
Subject:Computer SciencePrice: Bought3
Write a JAVA program that creates an array of size 100 that holds the following integers: 1-100. You should use a for loop to populate the array. Your program should contain a static method printArray(int[] a) that outputs the contents of the array.