- Array is a same as a variable.
- This is add more then one value at a time.
int[] myintarray={};
{
}
Example:-
public class MyClass
{
public static void main(string[] arg)
{
int[]Myintarray={1,2,3,4,5}
//int myintarray[]={1,2,3,4,5}
{
System.out.println(3);
}
}
}
0 Comments:
Post a Comment