How to convert Vector to String array in java

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

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

7条回答
  •  伪装坚强ぢ
    2021-01-01 18:59

    Try Vector.toArray(new String[0]).

    P.S. Is there a reason why you're using Vector in preference to ArrayList?

提交回复
热议问题