String arr[3] = {"hello", "liubo"}; // Wrong writing
String arr[] = {"hello", "liubo"}; // Right writing
Why doesn't Java allow developers to specify the array size in advance?
String arr[3] = {"hello", "liubo"}; // Wrong writing
String arr[] = {"hello", "liubo"}; // Right writing
Why doesn't Java allow developers to specify the array size in advance?