Simple Array Program in Java

  1. public class FirstArrayProgram{  
  2.     public static void main(String[] args){  
  3.         String a[]={"January","Febuary","March","April","May","June","July","August","September","October","November","December"};  
  4.         for(int i=0;i<a.length;i++){  
  5.             System.out.println("The month is : " + a[i]);;  
  6.         }  
  7.     }