The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

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

Message:

RE: Clueless with constructors?

Posted by Jody Brown on November 14, 2000 at 12:20 PM

Not knowing the structure of CourseList, and assuming that cVec
is an array of Course objects, the following should help.

public CourList (Vector cVec) {
for (Enumeration e = cVec.elements() ; e.hasMoreElements() ;)
{
someMethodToAddACourseToCourList( (Course) e.nextElement());
}
}

Regards,

Jody



Replies:
  • Thanks Bugger November 15, 2000 at 9:19 AM (0)

Sponsored Links



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