java 8 init array string code example Example: java initialize string array String[] errorSoon = {"Hello", "World"};