Simple currency exchange calculator Java