Ahmed
Ahmed

Reputation: 11

Java, delete Elements in an Array using counter , could anyone explain an example

I did not understand well how could i delete an elment in anywhre in array then put an elment in the same position So there will be no empty spaces could anyone explain an simpleexample

Upvotes: 0

Views: 34

Answers (1)

akuhn
akuhn

Reputation: 27793

Try this

array[n] = newValue

This replaces the n-th element with a new value.

Upvotes: 1

Related Questions