今天是表示函数的代码
public class MethodExample {
public static void main(String[] args) {
sayHello();
calculateSum(5, 10);
}
public static void sayHello() {
System.out.println("Hello, World!");
}
public static void calculateSum(int a, int b) {
int sum = a + b;
System.out.println("The sum of " + a + " and " + b + " is " + sum);
}
}