The Artima Developer Community
Sponsored Link

Legacy Design Forum
Canonical Object Idiom

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

deleting from an array, what am I doing wrong

Posted by Lars Madsen on June 02, 2001 at 9:32 AM

public void remove(String w)
{
for(int i = 0; i < transactionList.length; i++)
{
if(w.equals(transactionList[i]))
{
transactionList[i] = transactionList[antalTrans -1];
transactionList[antalTrans -1] = null;
}
}
}



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us