Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Multi-dimensional arrays

In this section, you will learn about mult-dimensional array in java.

Tutorial Details:

So far we have studied about the one-dimensional and two-dimensional arrays. To store data in more dimensions a multi-dimensional array is used. A multi-dimensional array of dimension n is a collection of items. These items are accessed via n subscript expressions.

For example, in a language that supports it, the element of the two-dimensional array x is denoted by x[i,j].

The Java programming language does not really support multi-dimensional arrays. It does, however, supports an array of arrays. In Java, a two-dimensional array 'x' is an array of one-dimensional array. For instance :-

int[][] x = new int[3][5];


 

Rate Tutorial:
http://www.roseindia.net/java/beginners/arrayexamples/multi.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Multi-dimensional arrays

View Tutorial:
Multi-dimensional arrays

Related Tutorials:

Java decompilers compared - JavaWorld - July 1997
Java decompilers compared - JavaWorld - July 1997
 
Java Tip 65: Measure data transfer speeds via Sun's ORB in JDK 1.2 beta 4 - JavaWorld - January 1999
Java Tip 65: Measure data transfer speeds via Sun's ORB in JDK 1.2 beta 4 - JavaWorld - January 1999
 
Programming Java threads in the real world, Part 3 - JavaWorld - November 1998
Programming Java threads in the real world, Part 3 - JavaWorld - November 1998
 
Java Tip 71: Use dynamic messaging in Java - JavaWorld - April 1999
Java Tip 71: Use dynamic messaging in Java - JavaWorld - April 1999
 
Java performance programming, Part 3: Managing collections - JavaWorld February 2000
Java performance programming, Part 3: Managing collections - JavaWorld February 2000
 
C#: A language alternative or just J--?, Part 2 - JavaWorld December 2000
C#: A language alternative or just J--?, Part 2 - JavaWorld December 2000
 
Diagnose common runtime problems with hprof
Diagnose common runtime problems with hprof
 
Java scripting languages: Which is right for you?
Java scripting languages: Which is right for you?
 
Java Tip 130: Do you know your data size?
Java Tip 130: Do you know your data size?
 
Check out three collections libraries
Check out three collections libraries
 
Axis-orizing objects for SOAP
Axis-orizing objects for SOAP
 
Datastructures and algorithms, Part 1
Datastructures and algorithms, Part 1
 
Navigate through virtual worlds using Java 3D
Navigate through virtual worlds using Java 3D
 
JAligner
JAligner JAligner is an open source Java implementation of the Smith-Waterman algorithm with Gotoh's improvement for biological local pairwise sequence alignment using the affine gap penalty model.
 
HeapAnalyzer
What is HeapAnalyzer? HeapAnalyzer allows the finding of a possible JavaTM heap leak area through its heuristic search engine and analysis of the Java heap dump in Java applications. Java heap areas define objects, arrays, and classes.
 
Enhance looping in Java 5.0 with for/in
The for/in loop -- often called either enhanced for or foreach is largely a convenience feature in Java 5.0. It doesn\\'t really offer any new functionality, but certainly makes several routine coding tasks simpler.
 
Sun Repricing Select Sun StorEdge 3000 Arrays
To provide customers with affordable storage products, Sun is reducing its price on the Sun StorEdge 3310 SCSI Array, Sun StorEdge 3510 FC Array, and Sun StorEdge 3511 FC Array with SATA.
 
Sun StorEdge 3511 SATA Array With 400 GB Configurations
An additional 12 configurations are now available with the Sun StorEdge 3511 SATA Array. With these new 400 GB configurations, users have access to massive density with configurations that support up to 2.4 TB per rack unit. A full rack of these arrays ca
 
Core Java Interview Questions!
Core Java Interview Questions! Core Java Interview Questions Question: What is transient variable? Answer: Transient variable can't be serialize. For example if a variable is declared as transient in a Serializable class and the class is written
 
A Practical Roadmap for Deploying Enterprise Web Applications: Taking the First Step
This article covers important decision points around the availability, scalability, and security that are needed for enterprise web applications.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.