How to convert Vector to String array in java

后端 未结 7 1636
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 17:58

How to convert Vector with string to String array in java?

相关标签:
7条回答
  • 2021-01-01 19:03

    here is the simple example

    Vector<String> v = new Vector<String>();
    String [] s = v.toArray(new String[v.size()]);
    
    0 讨论(0)
提交回复
热议问题