编译运行以下程序后,关于输出结果的说明正确的是( )。 public class Conditional{ public static void main (String args[]){ int x=2: System.out.println('value is”+ ((x<1)?2:2)); } }
A.
输出结果为:valueis22.2
B.
输出结果为:value is 2
C.
输出结果为:value is 2.0
D.
编译错误
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】The first thing ___________ we should do is to clean the room.