array declaration code example
Example 1: java array declaration
int[] array = new int[];
Example 2: array declaration and initialization in java
int[] age = new int[5];
Example 3: work with arrays java
new String[] { "A", "B"}
Example 4: how to make a c# array
datatype_variable[dimension] = new datatype[size]{array};
string MyArray[] = new string[1]{"Hello","World"};
string MyArray[]={"Hello","world"};
int MyArray=[,]=new int[1,2]{
{1,2,3},
{1,2,3}
}
int MyArray=[,,]=new int[1,2,3]{
{
{1,2,3,4},
{1,2,3,4},
{1,2,3,4}
},
{
{1,2,3,4},
{1,2,3,4},
{1,2,3,4}
}
}
Example 5: how to declare an array
redim Friday(NumFRdays)