Using Multidimensional Arrays : Array « JSP « Java






Using Multidimensional Arrays

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

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

        accounts[0][3] = 11.09;
        accounts[1][3] = 19.07;

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


           
       








Related examples in the same category

1.Demo for loop
2.Creating an Array
3.Int array
4.Passing Arrays to Methods