This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes HashTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HashTable" Watch "HashTable" New topic
Author

HashTable

RajeshDuray
Greenhorn

Joined: May 25, 2006
Posts: 11
Hi,
I need the output for the following program
/* particularly the value of a */
psvmain()
{
HashTable hm=new HashTable();
hm.put("1","one");
hm.put("2","two");
Enumeration enu=hm.elements();
String a[];
while(enu.hasMoreElement()
{
a=(String[])enu.nextElement());
}
}
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

This is the Servlet forum, please post servlet related questions.
About the output of your program, did you at least try to execute it ?


[My Blog]
All roads lead to JavaRanch
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Despite several requests you still have not updated your display name. I'm going to ask for your account to be closed.

When you re-register, please try to post your questions in the correct forum.

thanks,
Dave.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HashTable
 
Similar Threads
Hashtable and Hashmap Doubt
Collections.synchronizedMap
related to java.util.hashtable
HashMap question?
What is the difference between Hashtable and HashMap classes?