[Java] How to Cast ArrayList#toArray to String[]
I’ll introduce how to cast ArrayList#toArray to String[] in Java.
String[] stringArray = (String[]) arraylist.toArray(new String[]{});
That’s all from the Java Gemba.