Cast a column of a 2D Object array as a 1D String array

I am trying to cast a 2D Object array column as a 1D String array; I have no problem getting the data itself, but it is the data types which creates a run-time error: > Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.String > cannot be cast to [Ljava.lang.String; This is an example of the code fragment I am working with: Object[][] currentData = BackOffice.getData(); String[] dataWanted = null; for (int i=0; i

以上就是Cast a column of a 2D Object array as a 1D String array的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏