Change all String[] to ArrayList<String>.