| | |
Can you use Strings as 'values' in a hashtable?
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
0
#2 Oct 29th, 2009
Strings can, of course be values in a hastable, but what does that have to do with the rest of the question?
What do you mean by "method generated Strings" and "plug them into another method"?
Also, whatever it is, HashMap would probably be a better choice than Hashtable, unless you have some specific reason for synchronizing access to it.
What do you mean by "method generated Strings" and "plug them into another method"?
Also, whatever it is, HashMap would probably be a better choice than Hashtable, unless you have some specific reason for synchronizing access to it.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
0
#3 Oct 29th, 2009
Strings can, of course be values in a hastable, but what does that have to do with the rest of the question?
What do you mean by "method generated Strings" and "plug them into another method"?
Also, whatever it is, HashMap would probably be a better choice than Hashtable, unless you have some specific reason for synchronizing access to it.
What do you mean by "method generated Strings" and "plug them into another method"?
Also, whatever it is, HashMap would probably be a better choice than Hashtable, unless you have some specific reason for synchronizing access to it.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
•
•
Join Date: Oct 2009
Posts: 10
Reputation:
Solved Threads: 0
0
#4 Oct 29th, 2009
•
•
•
•
Strings can, of course be values in a hastable, but what does that have to do with the rest of the question?
What do you mean by "method generated Strings" and "plug them into another method"?
Also, whatever it is, HashMap would probably be a better choice than Hashtable, unless you have some specific reason for synchronizing access to it.
Thanks
0
#5 Nov 3rd, 2009
I have no idea what you are talking about.
Maybe you should provide a bit of a sample of the data you start with and then a detailed explanation of what you are doing with it (showing the modifications to that data).
Maybe you should provide a bit of a sample of the data you start with and then a detailed explanation of what you are doing with it (showing the modifications to that data).
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
Similar Threads
- Working with palindromes (Java)
- Dates between the two given dates (Oracle)
- Read multiple column data from SQL query ( 1 row ) (ASP.NET)
- transfer of values from one method to another (Java)
- how use integer values begins with zero (Java)
- Python Sets? (Python)
- Chores Assignment Script (Python)
- Quick Basic Help Please! (C++)
- Subset of Hashtable... (Java)
- why can't you use a switch statment with a string? (C++)
Other Threads in the Java Forum
- Previous Thread: printing in passbook using swing
- Next Thread: how to output the result in jframe
| Thread Tools | Search this Thread |
Tag cloud for Java
android api apple applet application arc arguments array arrays automation binary bluetooth c++ chat class classes client code codesnippet component csv database doctype draw ebook eclipse error event exception fractal freeze game givemetehcodez graphics gui html ide image input integer intellij iphone j2me java java.xls javaprojects jmf jni jpanel julia linux list loop loops mac map method methods mobile netbeans newbie number online oracle page parameter plazmic print problem program programming project recursion reporting rotatetext scanner screen sell server set size sms socket sort sourcelabs sql string superclass swing system template test testautomation threads time title tree tutorial-sample windows working






