我在工商讲课的时候准备的一些东西
2009-09-25 11:45
232 查看
public class Vari{
static int i = 0;
static short s = 1;
static byte b = 2;
static long l ;
static char c;
static float f;
static double d;
static boolean bl;
static int ib = -5;
public static void main(String[] args){
System.out.println("i = " + i);
System.out.println("s = " + s);
System.out.println("b = " + b);
System.out.println("l = " + l);
System.out.println("c = " + c);
System.out.println("f = " + f);
System.out.println("d = " + d);
System.out.println("bl = " + bl);
System.out.println("5's binary string is:" + Integer.toBinaryString(5));
System.out.println("-5's binary string is:" + Integer.toBinaryString(-5));
System.out.println("128's binary string is:" + Integer.toBinaryString(128));
System.out.println("-128's binary string is:" + Integer.toBinaryString(-128));
System.out.println("1 | 5 = " + (1 | 5));
System.out.println("1 & 5 = " + (1 & 5));
System.out.println("1 ^ 5 = " + (1 ^ 5));
if(5>3 && 5>4){
System.out.println("5>3 && 5>4" );
}
System.out.println("5>>3 = " + (5>>3) );
System.out.println("5>>>3 = " + (5>>3) );
System.out.println("-5>>3 = " + (-5>>3) );
System.out.println("-5>>>3 = " + (-5>>>3) );
System.out.println("5<<3 = " + (5<<3) );
System.out.println("-5<<3 = " + (-5<<3) );
System.out.println("5<<32 = " + (5<<32) );
System.out.println("-5<<32 = " + (-5<<32) );
System.out.println("bl = " + (bl = (5<3)?true:false ));
for(int iter=0;iter<9;iter++){
if(iter == 6){
continue;
}
System.out.println("iter " + iter);
}
for(int iter=0;iter<9;iter++){
if(iter == 6){
break;
}
System.out.println("iter " + iter);
}
}
}
static int i = 0;
static short s = 1;
static byte b = 2;
static long l ;
static char c;
static float f;
static double d;
static boolean bl;
static int ib = -5;
public static void main(String[] args){
System.out.println("i = " + i);
System.out.println("s = " + s);
System.out.println("b = " + b);
System.out.println("l = " + l);
System.out.println("c = " + c);
System.out.println("f = " + f);
System.out.println("d = " + d);
System.out.println("bl = " + bl);
System.out.println("5's binary string is:" + Integer.toBinaryString(5));
System.out.println("-5's binary string is:" + Integer.toBinaryString(-5));
System.out.println("128's binary string is:" + Integer.toBinaryString(128));
System.out.println("-128's binary string is:" + Integer.toBinaryString(-128));
System.out.println("1 | 5 = " + (1 | 5));
System.out.println("1 & 5 = " + (1 & 5));
System.out.println("1 ^ 5 = " + (1 ^ 5));
if(5>3 && 5>4){
System.out.println("5>3 && 5>4" );
}
System.out.println("5>>3 = " + (5>>3) );
System.out.println("5>>>3 = " + (5>>3) );
System.out.println("-5>>3 = " + (-5>>3) );
System.out.println("-5>>>3 = " + (-5>>>3) );
System.out.println("5<<3 = " + (5<<3) );
System.out.println("-5<<3 = " + (-5<<3) );
System.out.println("5<<32 = " + (5<<32) );
System.out.println("-5<<32 = " + (-5<<32) );
System.out.println("bl = " + (bl = (5<3)?true:false ));
for(int iter=0;iter<9;iter++){
if(iter == 6){
continue;
}
System.out.println("iter " + iter);
}
for(int iter=0;iter<9;iter++){
if(iter == 6){
break;
}
System.out.println("iter " + iter);
}
}
}
相关文章推荐
- 记忆英语单词小工具的开发(是时候为自己写一些东西了)
- 写一些有关android的东西吧,那时候玩android时候的一些笔记
- 一些需要准备的东西
- 要工求职的时候需要准备的一些问题--找一点加一点
- 在看DedeCMS代码时候想到的一些东西
- 学习GTK时候临时记录的一些东西备忘
- 准备重新学习一些东西
- 一些面试的时候必须要背出来的东西(2)
- 有的时候总是需要过滤一些没用的东西,歌词过滤工具V1.1的实现(提供下载)
- 先开始学习,其它要准备的东西,要用到的时候再找。。。
- 有的时候总是需要过滤一些没用的东西,歌词过滤工具V1.0的实现(提供下载)
- 准备SCJP的时候做的一些笔记
- 准备一些东西
- [转贴]准备SCJP的时候做的一些笔记
- css一些东西(这里主要有一个方法就是背景渐变,一般我们处理的时候是用图片)
- 蛋疼时候的一些东西
- 准备在博客上写一些东西
- 第一篇 2016年,准备写一些东西
- 有悟性不一定有灵性!也就是你能悟到一些东西的时候未必就能很好地表达出来,灵性是透在骨子里的一种感觉!灵性之美是由心而发的,它不需要任何解释,在视觉传达领域尤其这样。
- 学校的ASP网站修改的时候用到的一些东西(更新中2012.07.16添加了SQL2000数据转移到Mysql)