(请注意!引用、转贴本文应注明原作者:rosen jiang 以及出处:http://www.matrix.org.cn/blog/rosen)
基础
短路运算符就是我们常用的“&&”、“”,一般称为“条件操作”。
class logic{
public ststic void main(string[] args){
int a=1;
int b=1;
if(a<b && b<a/0){
system.out.println("oh,that's impossible!!!");
}else{
system.out.println("that's in my control.");
}
}
} class logic{
public ststic void main(string[] args){
int a=1;
int b=1;
if(a==b b<a/0){
system.out.println("that's in my control.");
}else{
system.out.println("oh,that's impossible!!!");
}
}
} class logic{
public ststic void main(string[] args){
int a=1;
int b=1;
if(a<b & b<a/0){
system.out.println("oh,that's impossible!!!");
}else{
system.out.println("that's in my control.");
}
}
} class logic{
public ststic void main(string[] args){
int a=1;
int b=1;
if(a==b b<a/0){
system.out.println("that's in my control.");
}else{
system.out.println("oh,that's impossible!!!");
}
}
} Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器