What you have tried so far?
I think you try to create currency convertor in java.
Can you post your code? that will be help easy to help you...