Switch to full style
JSP Code Examples
Post a reply

Multidimensional Arrays in JSP

Thu Jan 15, 2009 10:53 pm

This is an example show you how to use Multidimensional Arrays in JSP (java server pages)
Code:
<HTML>
  <
HEAD>
    <
TITLEMultidimensional Arrays in JSP</TITLE>
  </
HEAD>

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

        
cars[0][2] = 1111.09;
        
cars[1][4] = 19000.07;

        
out.println("Price of mazda cars with catergory 2 is  ;&nbps;" cars[0][2] + "$ <BR>");
        
out.println("Price of BMW cars with catergory 4 is" cars[1][4]+"$ <BR>");
     %>
  </
BODY>
</
HTML>



 




Post a reply
  Related Posts  to : Multidimensional Arrays in JSP
 Multidimensional arrays in Java     -  
 multidimensional array merge using PHP     -  
 Defining arrays in ASP     -  
 Arrays using Pointers     -  
 Arrays in photoshop     -  
 Concept of arrays     -  
 Arrays in java     -  
 Comparing Arrays in java     -  
 Variable Size Arrays     -  
 How to compare two arrays in java     -  

Topic Tags

Servlets/JSP