文章标题

来源:互联网 发布:microsoft windows pe 编辑:程序博客网 时间:2024/05/02 23:21

/**
*
*/
package com.aa;

/**
* @author Administrator
*
*/
public class Demo9 {

/** * @param args * 条件运算符 * 三目运算符 */public static void main(String[] args) {    // TODO Auto-generated method stub int score=68; String mark=(score>60) ? "及格" : "不及格"; String aa=(1>2) ? "a" :"b"; System.out.println("考试成绩如何:"+mark); System.out.println(aa);}

}

0 0
原创粉丝点击