<script language="JavaScript"> var num[]; <% int[] num = new int[] {1,2,3,4,5}; for(int i = 0; i < num.length; i++) { out.println("num[" + i + "] = " + num[i]); } %>