Return-Path: Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 23545 invoked from network); 10 Aug 2000 10:49:43 -0000 Received: from www.scriptum.hu (HELO scriptum.hu) (213.163.0.6) by locus.apache.org with SMTP; 10 Aug 2000 10:49:43 -0000 Message-ID: <277B3F9C3E047EF81694026E@dict.scriptum.hu> Received: From lemma.scriptum.hu [213.163.4.62] by dict.scriptum.hu [213.163.0.6] with MsgCore/NT [(C) 1998,2000 Nosque Workshop] BD0222 id277B3F9C3E047EF81694026E; Thu, 10 Aug 2000 12:50:36 +0200 Reply-To: From: "Szegedi, Attila" To: Subject: RE: Hashtable keys() and elements() order [Was: Question aboutSelect /Options tag] Date: Thu, 10 Aug 2000 12:53:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N It will typically iterate the underlying array, (and each array element can also have a "next" reference, turning it into a linked list). Given that hashing depends on the capacity, even the same entries put in a table of different capacity will be returned in different order. Attila. > -----Original Message----- > From: John Tangney [mailto:jtangney@knowledgeplanet.com] > Sent: Wednesday, August 09, 2000 10:35 PM > To: struts-user@jakarta.apache.org > Subject: Re: Hashtable keys() and elements() order [Was: > Question aboutSelect /Options tag] > > > My guess is that it's not specified, but you can always look > at the code for > java.util.Hashtable and see. I wouldn't rely on it if I were you... > > --johnt > > > > Does anyone know whether or not the keys() and elements() > methods of a > > Hashtable enumerate things in the same order? >