Java Blog

 
 
 
 public class JAVA_035
 {

    public static void main(String[] args)
    {
       int[] array={10,-1,28,13,44,5,36,97,-18,11};

       System.out.println(\"The contents of the Array are :\");

       for(int i=0;i<10;i++)
          System.out.println(\"\\t\\t\\t Array[\" + i + \"] = \" + array[i]);
    }
 }

 
 
Didn't find what you were looking for? Find more on Program to declare, initialize and print an array of integers