public static void rainbows() {
Console console = System.console();
double F = Double.parseDouble(console.readLine("Enter Fahrenheit: "));
System.out.print("The Degrees in Celsius is: " + ((F - 32) * (5.0/9)));
这是我想在Main方法中调用的方法。如何在没有参数的情况下调用它?
答案 0 :(得分:0)
public class MyClass {
public static void main(final String[] args) {
rainbows();
}
// your method here
}