Java eqivalent method of “splice(a,b,…)” in JavaScript method

后端 未结 6 881
伪装坚强ぢ
伪装坚强ぢ 2021-01-20 01:22

someArray.splice(a,b,...) method in JavaScript adds or removes items to/from array. What could be good and simple solution to implement such method in Java lang

6条回答
  •  北海茫月
    2021-01-20 01:56

    In standard Java libraries, there is no equivalent functionality.

    There is java.util.Arrays class, but no similar functionality there.

提交回复
热议问题