defining array i java code example
Example 1: java array declaration
int[] array = new int[/*size*/];
// Works for double, char, etc.
Example 2: how to use arrays java
// How to use arrays
// Julian
public static void main(String[] args)
{
// Initialize array
int[] arrNum = {25, 23, 15, 20, 24};
// Recorrerlo
for(int a = 0; a < arrNum.length; a++)
{
System.out.println(arrNum[a]);
}
}