Showing posts with label Declaration. Show all posts
Showing posts with label Declaration. Show all posts

Array Shortcut Method

array shortcut methodArray 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;

Flipkart End Of Season Sale






© Copyright 2017 Javabychetan.blogspot.com