int[] a = new int[]{1,5,44,7,32}; //how to display all elements on screen? for (int i=0; i