| | |
Can you use Strings as 'values' in a hashtable?
![]() |
0
#2 32 Days Ago
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 32 Days Ago
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 32 Days Ago
•
•
•
•
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 27 Days Ago
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 |
-xlint add android api applet application applications array arrays automation bank bi binary blackberry bluetooth chat class client code compile compiler component database development digit eclipse equation error event fractal freeze functiontesting game gameprogramming givemetehcodez graphics gui health html hyper ide idea image infinite input int integer j2me java javame javaprojects jetbrains jni jpanel jtable julia learningresources linux list login loop main map method methods mobile myregfun netbeans newbie nonstatic notdisplaying pearl problem program programming project qt recursion scanner screen scrollbar server set sms sort sorting spamblocker sql sqlserver string superclass swing system text-file thread threads tree variablebinding windows xor






