Seetharaman Venkatasamy please tell something logical rather than smileys

))))))
I mean that if there occurs an exception while I am getting the valueof
string to the enum, program enters the catch block and then program goes out the catch block and goes its own way after catch block. Ooop what I want is, damn stupid programme if you enter the catch block do not process your flow with this object, go the for loop increment i and get another objecct from list and start your job. hell yeah...
am I clear now???
thanks frank braunstein,
the reason I am using exception because I have to do.
I am reading a string from file and I am getting its enum value with valueOf(...) method, if string matches wth enum no problem.
But however, if string is written wrong, valueOf(..) method throws an exception. So I don want to use a long if block if this is equal to this, so it that enum.