Program crashes if you enter in the wrong data...

Ok, my problem,

I have a java application that reads in Currencies , now when I read in the correct currency symbol it works 110% and Im delighted with it.....however when I read in a dud currency it crashes and the application never completes what it is suppopsed to.......

Is there anyway of getting it to keep going? and if someone for example entered ina dud currency it would simply ignore it.....any ideas.....

P.S Im very much a beginner.

[470 byte] By [darrenhamiltona] at [2007-10-2 20:08:16]
# 1
We need some more information. What does "crashes" means? You get a stack trace? The computer goes up in flames?Also, if you're getting a stack trace it would help to see some code. That way we can show you where there might be some problems.
stdunbara at 2007-7-13 22:48:41 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...