Array Fot String Code Example

Snippet 1
  String[] vowels = { "a", "e", "i", "o", "u" };
System.out.println(vowels);
System.out.println(Arrays.toString(vowels));
 
Snippet 2
  string[] abc=new string[]{"hai","hello"}