Original Post
im trying to set an array objects to 0 but the following way doesnt seem to work but i dont know why it wouldnt
mylist is defined as an array of comparables
public void makeEmpty()
{
for (int x=0;x<myList.length;x++)
{
(Comparable)myList[x]=0;
}
}
|