Can anyone of you help me overwrite something from my Spherocylinder array?
I've got this currently:
public Spherocylinder deleteSpherocylinder(String labelIn)
{
Spherocylinder result = null;
int index = 0;
for (int i = 0; i < elements; i++)
{
if (object[i].getLabel().equalsIgnoreCase(labelIn))
{
//My issue is with the line of code below, i know this is
//how i delete an element in an arraylist but i know want to
//delete it using an array.
result = object.remove(i);
}
}
return result;
}
where (object) is the name of my Spherocylinder array and (elements) is an int I use which tells me how many elements i have in my array. This line of code is just one of my methods in my class, any help would be appreciated.