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
Call
keyboard.nextLine();
After
temp = keyboard.nextInt();
Because nextInt() doesn't consume the \n character.
\n
Also, compare Strings with .equals(); not ==
Strings
.equals();
==
if(type.equals("C"));