Click here to Skip to main content
15,886,639 members
Home / Discussions / Java
   

Java

 
GeneralRe: my validation form not working - pls advise. tks. Pin
karengsh30-Dec-09 6:38
karengsh30-Dec-09 6:38 
GeneralRe: my validation form not working - pls advise. tks. Pin
Richard MacCutchan30-Dec-09 11:01
mveRichard MacCutchan30-Dec-09 11:01 
GeneralRe: my validation form not working - pls advise. tks. Pin
karengsh30-Dec-09 16:05
karengsh30-Dec-09 16:05 
GeneralRe: my validation form not working - pls advise. tks. Pin
Richard MacCutchan30-Dec-09 23:58
mveRichard MacCutchan30-Dec-09 23:58 
QuestionHashMap Pin
002comp29-Dec-09 22:55
002comp29-Dec-09 22:55 
AnswerRe: HashMap Pin
Richard MacCutchan29-Dec-09 23:16
mveRichard MacCutchan29-Dec-09 23:16 
GeneralRe: HashMap Pin
002comp30-Dec-09 18:01
002comp30-Dec-09 18:01 
GeneralRe: HashMap Pin
Cedric Moonen30-Dec-09 23:16
Cedric Moonen30-Dec-09 23:16 
First thing: as already mentioned a LOT of times, please format your code properly. Take some time to make your message readable and understandable, you will definitively get much more answers.
Second point, the previous poster asked you about which runtime error you receive. You still didn't provide that information.

Now concerning your problem: why do you iterate over the keys if you need the values D'Oh! | :doh: ? Instead of doing this:
Iterator itr = hmap.keySet().Iterator();


Do this:
Iterator itr = hmap.values().Iterator();


This way you will iterate over the values of your map. You will still need to cast your object to the correct type if you didn't use generics when declaring your map.


yogeshs wrote:
I want to tell that hmap is having two parameters:
hmap


Confused | :confused: I don't get that part of your message. Could you please clarify what you are trying to do ?

Cédric Moonen
Software developer

Charting control [v3.0 - Updated]
OpenGL game tutorial in C++

GeneralRe: HashMap Pin
002comp30-Dec-09 23:48
002comp30-Dec-09 23:48 
QuestionError Message - HTTP 500 & Error Message - no servlet mappings in web.xml Pin
karengsh29-Dec-09 0:28
karengsh29-Dec-09 0:28 
AnswerRe: Error Message - HTTP 500 & Error Message - no servlet mappings in web.xml Pin
Richard MacCutchan29-Dec-09 4:39
mveRichard MacCutchan29-Dec-09 4:39 
GeneralRe: Error Message - HTTP 500 & Error Message - no servlet mappings in web.xml Pin
karengsh30-Dec-09 5:06
karengsh30-Dec-09 5:06 
GeneralRe: Error Message - HTTP 500 & Error Message - no servlet mappings in web.xml Pin
Richard MacCutchan30-Dec-09 5:41
mveRichard MacCutchan30-Dec-09 5:41 
QuestionProb in reading .mtl file format. Pin
002comp27-Dec-09 19:35
002comp27-Dec-09 19:35 
Questioncall by value for objects Pin
mesho26-Dec-09 8:52
mesho26-Dec-09 8:52 
AnswerRe: call by value for objects Pin
Luc Pattyn26-Dec-09 9:18
sitebuilderLuc Pattyn26-Dec-09 9:18 
GeneralRe: call by value for objects Pin
mesho26-Dec-09 10:33
mesho26-Dec-09 10:33 
GeneralRe: call by value for objects Pin
Luc Pattyn26-Dec-09 10:38
sitebuilderLuc Pattyn26-Dec-09 10:38 
GeneralRe: call by value for objects Pin
mesho26-Dec-09 10:54
mesho26-Dec-09 10:54 
GeneralRe: call by value for objects Pin
Luc Pattyn26-Dec-09 11:22
sitebuilderLuc Pattyn26-Dec-09 11:22 
GeneralRe: call by value for objects Pin
Cedric Moonen26-Dec-09 22:45
Cedric Moonen26-Dec-09 22:45 
GeneralRe: call by value for objects Pin
mesho27-Dec-09 5:38
mesho27-Dec-09 5:38 
AnswerRe: call by value for objects Pin
April Fans18-Jan-10 15:28
April Fans18-Jan-10 15:28 
QuestionProblem in showing Illumination(shadowness) Pin
002comp23-Dec-09 0:48
002comp23-Dec-09 0:48 
AnswerRe: Problem in showing Illumination(shadowness) Pin
TorstenH.23-Dec-09 1:58
TorstenH.23-Dec-09 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.