2. 答案为:陆行信带大
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class TempConvert {
public static void main(String args[]) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String input = null;
try {
input = br.readLine();
Double tConvert = TConvert(Double.parseDouble(input));
System.out.println("摄早轮氏温度为:" + tConvert);
} catch (IOException e) {
e.printStackTrace();
}
}
public static Double TConvert(Double HuaT) {
return (5.0/9.0) * (HuaT - 32);
}
}
这些都是些经典的题,如果楼主想学好java的话,还是自己动脑筋吧,这样才能学到东西
网络上都有的