A three way temperature converter written in Java