how to declare array of string in java code example
Example 1: java new string array
String[] myStringArray = new String[3];
String[] myStringArray = {"a", "b", "c"};
String[] myStringArray = new String[]{"a", "b", "c"};
Example 2: arrays in java
int[] intArray = new int[20];
String[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
Example 3: how to declare string array in java
string[] abc=new string[]{"hai","hello"}