[单选题]public class XXK2 {private int a; public XXK2(int aa) {a=aa;}public int f1(int x) {if(x%2==1) return 2*(a+x);else return 3*a+x;}public int get( ) {return a;}public static void main(String[] args) {XXK2 x=new XXK2(5);int y=x.f1(9);y+=x.get( )*x.get( );System.out.println(y=+y);}}
北开题库
|
2023-10-01 08:01:46
|
23
[单选题]public class XXK2 {private int a; public XXK2(int aa) {a=aa;}public int f1(int x) {if(x%2==1) return 2*(a+x);else return 3*a+x;}public int get( ) {return a;}public static void main(String[] args) {XXK2 x=new XXK2(5);int y=x.f1(9);y+=x.get( )*x.get( );System.out.println(y=+y);}}

A.y =53
B.y =62
查看答案

国家开放大学

形成性考核

您可能感兴趣的试题
TOP