Error
% javac StringTest.java StringTest.java:4: variable errorSoon might not have been initialized errorSoon[0] = \"Error, why?\"
You can use below code to initialize size and set empty value to array of Strings
String[] row = new String[size]; Arrays.fill(row, "");