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
You could use keyboard.next() instead of nextLine() and as
keyboard.next()
nextLine()
user1770155
mentioned to compare two strings you should use .equals() and what I would do since you're comparing to an upper letter "C" is
.equals()
type = keyboard.next().toUpperCase(); if (type.equals("C"))