/* * Creating two literal arrays and printing them out to the monitor. */ package arrayrandomscanner; public class ArrayRandomScanner { // global private static variables for all methods in the class // This is one of two different ways to declare an array - using literals private static int[] myIntArray = {1,2,3,4,5,6,7,8,9,10,11,12}; private static String[] myStringArray = {"Jan", "Feb","Mar","Apr","May", "Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; public static void main(String[] args) { printInt(); } private static void printInt() { // "length" always goes to the end of the array for(int i = 0; i