how to use array code example
Example 1: creating array java
int[] intArray = new int[]{ 1,2,3,4,5,6,7,8,9,10 }
Example 2: How to use an array
var fruits=["orange","apple"];
Example 3: how to define array
int array[N];
int[] intArray = new int[]{ 1,2,3,4,5,6,7,8,9,10 }
var fruits=["orange","apple"];
int array[N];