Creating an Array : Array « JSP « Java Tutorial






<HTML>
  <HEAD>
    <TITLE>Creating an Array</TITLE>
  </HEAD>

  <BODY>
    <H1>Creating an Array</H1>
    <%
        double accounts[];
        accounts = new double[100];
        accounts[3] = 119.63;

        out.println("Account 3 holds $" + accounts[3]);
     %>
  </BODY>
</HTML>








23.5.Array
23.5.1.Creating an Array
23.5.2.Using Multidimensional Arrays
23.5.3.Passing Arrays to Methods