JAVA将Object数组转换为String数组

 

java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;

  

java将Object[]转换为String[]

 

list.toArray(new String[0]);

  

posted @ 2020-03-12 21:48  yvioo  阅读(10517)  评论(0编辑  收藏  举报