Remove element from Array Java -
i making tiny little program should able select random element put array using random of course (for practice purposes) , when element in array has been chosen @ random. want remove element in array, how remove element in array easiest way?
its thing want know. got else sorted. it's removing element has chosen (the random takes random number between 0 , amount of elements in array, if chooses 0, take first element in array, , on)
you can use arraylist support remove or add function, resizable array.
Comments
Post a Comment