Anyone know how to remove an object at a particular index from an array? Im doing a Noah's Ark project for my class and Im using an Array to hold the abstract animal class and once an animal dies, I have to remove it from the list. However I can't seem to get it right. Any help would be nice :)
SSSBoy 0 Newbie Poster
Recommended Answers
Jump to Postyou mean if you had the following:
intArray[0] = 0; intArray[1] = 1; intArray[2] = 2; intArray[3] = 3; intArray[4] = 4;
and you wish to convert it to:
intArray[0] = 0; intArray[1] = 1; intArray[2] = 3; intArray[3] = 4;
you could use …
Jump to PostUse an ArrayList
All 6 Replies
paradox814 1 Posting Whiz
Black Knight 0 Light Poster
server_crash 64 Postaholic
jwenting 1,889 duckman Team Colleague
paradox814 1 Posting Whiz
miri 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.