Home

About

Advanced Search

Browse by Discipline

Scientific Societies

E-print Alerts

Add E-prints

E-print Network
FAQHELPSITE MAPCONTACT US


  Advanced Search  

 
March 23, 2008 ICS102: The course 1 March 23, 2008 ICS102: The course 2
 

Summary: March 23, 2008 ICS102: The course 1
Arrays 4/4
March 23, 2008 ICS102: The course 2
Outline
Multidimensional Arrays
Two-Dimensional Array as an Array of Arrays
Using the length Instance Variable
Multidimensional Array Parameters and Returned Values
A Grade Book Class
The Two-Dimensional Array grade
Example
March 23, 2008 ICS102: The course 3
- Multidimensional Arrays ...
It is sometimes useful to have an array with more than one
index
Multidimensional arrays are declared and created in basically
the same way as one-dimensional arrays
You simply use as many square brackets as there are indices
Each index must be enclosed in its own brackets
double[][]table = new double[100][10];

  

Source: Adam, Salah - Department of Information and Computer Science, King Fahd University of Petroleum and Minerals

 

Collections: Computer Technologies and Information Sciences