Array Shortcut Method
1.For 1-D Array:-
We can declare, create & initialize an array into a single line.
This is the short cut method what we are discussing here.
let's go...example :
int [ ] x= new int [3];
x[0]=10;
x[1]=20;
x[2]=30;
We can declare, create & initialize an array into a single line.
This is the short cut method what we are discussing here.
let's go...example :
int [ ] x= new int [3];
x[0]=10;
x[1]=20;
x[2]=30;