Using Multidimensional Arrays : Array « JSP « Java Tutorial






<HTML>
  <HEAD>
    <TITLE>Using Multidimensional Arrays</TITLE>
  </HEAD>

  <BODY>
    <H1>Using Multidimensional Arrays</H1>
    <%
        double accounts[][] = new double[2][100];

        accounts[0][3] = 119.63;
        accounts[1][3] = 194.07;

        out.println("Savings Account 3 holds $" + accounts[0][3] + "<BR>");
        out.println("Checking Account 3 holds $" + accounts[1][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