array with strings java substring code example Example: java initialize string array String[] movies;