わかりました、私はプログラミングの完全な初心者で、Java でコーディングを始めたばかりです。温度変換 (摂氏から華氏) のコードを書き込もうとしましたが、何らかの理由で実行できません! このコードのエラーを見つけるのを手伝ってください(どんなにばかげているかもしれません)。
コードは次のとおりです。
package tempConvert;
import java.util.Scanner;
public class StartCode {
Scanner in = new Scanner(System. in );
public double tempInFarenheit;
public double tempInCelcius;
{
System.out.println("enter the temp in celcius");
tempInCelcius = in .nextDouble();
tempInFarenheit = (9 / 5) * (tempInCelcius + 32);
System.out.println(tempInFarenheit);
}
}