Creating an Array : Array « JSP « Java






Creating an Array

<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>


           
       








Related examples in the same category

1.Demo for loop
2.Using Multidimensional Arrays
3.Int array
4.Passing Arrays to Methods