| Author |
what is meant by jagged array
|
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
can any one tell me what is a jagged array i nerver gone thru this word in java books thanks in advance
|
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
|
 |
Deepak Bala
Bartender
Joined: Feb 24, 2006
Posts: 6603
|
|
A jagged or rugged array is when you have a non uniform array. A 2 X 2 array will look like this 00 00 A rugged or jagged array might look like this. 00000 00 0000000 0000 00 0 This is achieved when defining the array. You mention that this is an array with 6 elements of depth but you add the width whenever you want with the new operator. This would not fit under advanced though
|
SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
|
thanx,but can i create a jagged array in java ?? is it really helpful for a programmer
|
 |
Deepak Bala
Bartender
Joined: Feb 24, 2006
Posts: 6603
|
|
Yes you most certainly can There are some cases when this can be helpful. Say you have a list of things to add to a data structure like the following... apple orange one two four nine seven bla bla bla You can put it in a rugged array and then serialize the data in case you want to save it. I have not used rugged/jagged arrays at work ( yet )
|
 |
 |
|
|
subject: what is meant by jagged array
|
|
|