I recently started learning java during my spare time. So to practice, I\'m making a program that takes a temperature (Celsius or Fahrenheit) and converts it to the opposite
Also, use type.equals("C") instead of if (type == "C"), the later one is comparing the reference of the value.
type.equals("C")
if (type == "C")