how to make an empty array java code example
Example 1: java empty array
String [] names = new String[0];
// or
int [] ages = {}
Example 2: empty array java
//where n is the length you want the array to be
// for integer array
int[] intArray = new int[n];
// for String array
String[] strArray = new String[n];