I keep getting errors saying that the scanner statement is not a statement.
I am also getting more errors such as, expecting ";" on the scanner line and that my celsius statement which does the math to convert Celsius into Fahrenheit. I need help correcting these errors
import java.util.*;
import java.txt.*;
public class TempConvert{
public static void main(String arg[]){
double celsius, fahrenheit, num=0, num1;
Scanner new = new Scanner(System.in);
TempConvert pn = new Tempconvert();
System.out.printIn("Will you be using converting to Fahrenheit or Celsius? ");
num = scan.nextInt();
System.out.printIn("Enter your Temperature");
num1 =scan.nextINt();
if(num = fahrenheit){
pn.CtoF();
}// end first if statement
if(num1 = celsius){
pn.FtoC();
}// ends second if statement
}// end main()
public void FtoC(){
double celsius, fahrenheit;
celsius = 5/9(fahrenheit - 32);
System.out.printIn("Your tempeture in Celsius is " + celsius);
}// end FtoC
public void CtoF(){
double celsius, fahrenheit;
fahrenheit = celsius * (9/5) + 32;
System.out.printIn("Your tempeture in Fahrenheit is " + fahrenheit);
}// end CtoF