标签云

微信群

扫码加入我们

WeChat QR Code


Settle Down. I'm coming up with a duplicate for you since you clearly didn't search for yourself.

2018年10月23日42分37秒

arr.splice(arr.indexOf(elm),1) will remove an element 'elm' from array 'arr'

2018年10月23日42分37秒

You know there is .splice right?

2018年10月23日42分37秒

Yes, I know. But I'm considering that the array can have more than one "a"

2018年10月23日42分37秒

I didn't think of that. Good point. +1

2018年10月23日42分37秒

The array has only unique values !

2018年10月23日42分37秒

this is valid for Array and arraylist both

2018年10月23日42分37秒