public class MyClass {
public static void main(final String[] args) {
rainbows();
}
// your method here
}
How do I invoke a method without parameters?
-
01-10-2022 - |
質問
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)));
This is the Method I would like to invoke in my Main method. How do I invoke it without parameters?
解決
所属していません StackOverflow