Java 关系运算符

2019年2月12日20:07:44 发表评论 931 views
/**
 * Created by xabcd on 2019/2/12.
 */
public class TestJava3_17
{public static void main(String args[])
{
    if (5>2)
        System.out.println("返回值"+(5>2));
    if (true)
        System.out.println("Hello Java");

        if((3+6)==(3-6))
            System.out.println("I like Java!");
    
}

}





返回值true
Hello Java

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: