摘要: 位运算操作符>> 算数右移动>exmp 1 int a1 = 12 >>1;变量a取值为6exmp 2int a2 = 12>>2//-3舍弃二进制数的最后两位 在二进制数的开头增加两位符号位.-12是负数故增加两位符号位为11正12-->负120000 1100取反1111 0011加11111 ... 阅读全文
posted @ 2014-03-09 23:19 王超_cc 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 练习1:将源文件内容拷贝到目标文件./src/txt/2.txt >public class UseBuffer { public static void main(String[] args) throws IOException{ final int SIZE = 1024; File fileIn = new File ("./src/txt/","1.txt"); FileInputStream in = ... 阅读全文
posted @ 2014-03-09 12:58 王超_cc 阅读(495) 评论(0) 推荐(0) 编辑