Java测试布尔类型

2019年2月11日22:07:34 发表评论 938 views
/**
 * Created by xabcd on 2019/2/11.
 */
public class TestJava3_10
{public static void main(String args[])
{   boolean status = true ;

    System.out.println("status ="+(3+2==9));
    System.out.println("status ="+ status);

}
}




结果:
status =false
status =true

发表评论

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