Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: enumeration...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 16002 of 16268
Post > Topic >>

Re: enumeration question

by Hendrik Maryns <gtw37bn02@[EMAIL PROTECTED] > Apr 22, 2008 at 11:28 AM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

a schreef:
| Hi
|
| How can I get back to the first element after fini****ng the while loop
with
| enum.hasMoreElements()?

You can’t.  You can, however, ask for a new Enumerator.  However, note
that Enumerator is obsolete, and has been replaced by Iterator.  Please
use that in your own code, as far as possible.

H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIDa/Te+7xMGD3itQRAhVOAJ9O8fs35q0XKBgHfF5gnYNrxW9VdgCfdnzP
FAGyfhmTUMFYjCbuDuxfvTw=
=0DUO
-----END PGP SIGNATURE-----
 




 5 Posts in Topic:
enumeration question
"a" <a@[EMAI  2008-04-22 08:50:13 
Re: enumeration question
Hendrik Maryns <gtw37b  2008-04-22 11:28:51 
Re: enumeration question
Hendrik Maryns <gtw37b  2008-04-22 12:43:45 
Re: enumeration question
Roedy Green <see_websi  2008-04-22 12:24:57 
Re: enumeration question
xinxin <jnzhouxinxin@[  2008-04-22 06:18:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:48:26 CDT 2008.