根据文件,
Removes the element at the specified position from the specified array.
Run Code Online (Sandbox Code Playgroud)
ArrayUtils.remove(['a'], 0) = []
ArrayUtils.remove(['a', 'b'], 0) = ['b']
ArrayUtils.remove(['a', 'b'], 1) = ['a']
ArrayUtils.remove(['a', 'b', 'c'], 1) = ['a', 'c']
Run Code Online (Sandbox Code Playgroud)
Removes the first occurrence of the specified element from the specified array.
Run Code Online (Sandbox Code Playgroud)
ArrayUtils.removeElement(null, 'a') = null
ArrayUtils.removeElement([], 'a') = []
ArrayUtils.removeElement(['a'], 'b') = ['a']
ArrayUtils.removeElement(['a', 'b'], 'a') = ['b']
ArrayUtils.removeElement(['a', 'b', 'a'], 'a') = ['b', 'a']
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9740 次 |
| 最近记录: |