文章标题
2016-09-18 22:56
162 查看
package com.aa;
/**
* @author Administrator
*逻辑运算符
*/
public class Demo8 {
public static void main(String[] args) {
boolean a=true;
boolean b=false;
boolean c=false;
boolean d=true;
System.out.println((a&&b)+”未通过”);
System.out.println((!a)+”未通过”);
System.out.println((a||b)+”通过”);
System.out.println((c^d)+(“通过”));
}
}
/**
* @author Administrator
*逻辑运算符
*/
public class Demo8 {
public static void main(String[] args) {
boolean a=true;
boolean b=false;
boolean c=false;
boolean d=true;
System.out.println((a&&b)+”未通过”);
System.out.println((!a)+”未通过”);
System.out.println((a||b)+”通过”);
System.out.println((c^d)+(“通过”));
}
}
相关文章推荐
- Invert Binary Tree
- JAVA基础--JMM(一)
- Unable to instantiate Action, xxxAction, defined for ‘xxx’ in namespace ‘/’xxxAction
- 二维码在短信业务应用的初步构思
- 文章标题
- 摄像成像原理
- 设计模式之composition,association和aggregation
- Raft支持 membership Raft一致性算法
- 总结的一些面试题
- java线程之基本概念
- 文章标题
- 东芝甲壳虫USB3.0移动硬盘指示灯
- Spring架构揭秘-MVC
- css基础知识(一)
- fragemt切换
- device eth0 does not seem to be present, delaying initialization
- 最小生成树之prim算法和克鲁斯卡尔算法
- Android WebView:性能优化
- java中string和int互相转化
- POJ3321 Apple Tree