Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
This is an example show you how to use Multidimensional Arrays in JSP (java server pages)
Code:
<HTML> <HEAD> <TITLE> Multidimensional 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>
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )