You need to declare the size of the string array, or you need to use an "in place" initializer

return new String[0]; // array of size 0
return new String[] {}; // array initialized to contain...