Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Two-dimensional arrays

In this section, you will learn about two-dimensional arrays with an example.`

Tutorial Details:

Two-dimensional arrays are defined as "an array of arrays". Since an array type is a first-class Java type, we can have an array of ints, an array of Strings, or an array of Objects.

For example, an array of ints will have the type int[]. Similarly we can have int[][], which represents an "array of arrays of ints". Such an array is said to be a two-dimensional array.
The command

int[][] A = new int[3][4];


 

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

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Two-dimensional arrays

View Tutorial:
Two-dimensional arrays

Related Tutorials:

Getting started with Java 2D - JavaWorld - July 1998
Getting started with Java 2D - JavaWorld - July 1998
 
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
 
Use JDBC for industrial-strength performance, Part 1 - JavaWorld January 2000
Use JDBC for industrial-strength performance, Part 1 - JavaWorld January 2000
 
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
 
Add XML to your J2EE applications - JavaWorld February 2001
Integrate an XML presentation layer in the J2EE layered architecture
 
Access the world's biggest database with Web DataBase Connectivity - JavaWorld March 2001
Access the world's biggest database with Web DataBase Connectivity - JavaWorld March 2001
 
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?
 
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
 
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.