Temperature.java will throw exception if negtive K