• 2022-06-06
    阅读下面程序,程序的运行结果是( )。public class Example {public static void main(String[] args) {int area = getArea(3, 5);System.out.println(" The area is " + area);}public static int getArea(int x, int y) {int temp = x * y; return temp; }}
    A: 编译错误
    B: The area is 3
    C: The area is 5
    D: The area is 15
  • 举一反三