Mine
public text v1 · immutable List<String> features = new ArrayList<String>();
features.add("feature1");
features.add("feature2");
unit.setFeatures((String[])features.toArray());
--
Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
at htest.logic.Main.main(Main.java:30)