Java: copy array to another

String[] stringArray = Arrays.copyOf(items.toArray(), items.size(), String[].class);

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert