How to sort/split array based on a given index in Java

后端 未结 0 1160
伪装坚强ぢ
伪装坚强ぢ 2021-01-11 21:35

I have an arraylist: {1, 4, 5, 6, 2, 9, 10}

How do I move the items before the given index (random)at the end of the list?

Example: Index 2, list should be: {5

相关标签:
回答
  • 消灭零回复
提交回复
热议问题