Required knowledge. Arithmetic operators  Data types  Basic Input/Output. How to convert Fahrenheit to Celsius. Before we write single line of Java code  you must know relation between Fahrenheit and Celsius.