摘要: 自己总结的vim经验2013-01-1011:01:27感谢 kev:http://v.youku.com/v_show/id_xndgwnjq3mda4.html?f=18603562 vim-008 command + motion1 1) c b 向前删除单词进入插入模式 2) d 3 j删除下面三行 3) d g 删除到末尾 4) d 0 删除到行首 5) d $ 上次到行尾 可用命令d c y v vim--009 Text Objects2 1) v i w 选中单词 i: inner v a w 选中单词和空格 a: a/an 2) v i p 选中段落 v... 阅读全文
posted @ 2013-01-10 10:59 ①只耳 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 1 public class TestSearch{ 2 public static void main(String[] args){ 3 int[] a = new int[]{1,3,6,8,9,10,12,18,20,38}; 4 int x = 23; 5 if(binarySearch(a,x)>0){ 6 System.out.println(binarySearch(a,x)); 7 }else{ 8 System.out.println("没有找到"); ... 阅读全文
posted @ 2011-11-20 12:54 ①只耳 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 改变字体windows->Preferences->General->Appearance->Colors and Fonts右边选择Java ->Java Editor Text Font 选择喜欢的字体改变字体颜色windows->Preferences->Java->Editor->Syntax Coloring右边选择Java 然后可以自由选择颜色了改变背景颜色windows->Preferences->General->Editor->Text Editors右边选择Appearance color opt 阅读全文
posted @ 2011-11-19 14:01 ①只耳 阅读(11151) 评论(0) 推荐(0) 编辑
摘要: 刚才老师讲了java的课程,不过我在视频中已经学过,就算是当回顾吧。同学们都说java老师讲的不好,我觉得呢,老师是好人,但不是好老师。。或许他那时候当程序员 的时候是比较牛逼的吧。。但愿,只是现在呢。。有点偷懒了吧,讲的不太爽。。不过我看了 尚学堂的视频看到了 第05章_数组_练习8把代码自己凭记忆敲了一遍。。以后参考时候用。。我这个不算抄袭吧。。只是记录一下方便以后用 2011-11-1911:12:18 1 public class Test{ 2 public static void main(String[] args){ 3 boolean[] a = ne... 阅读全文
posted @ 2011-11-19 11:06 ①只耳 阅读(205) 评论(0) 推荐(0) 编辑
摘要: public class Test{ public static void main(String[] args){ Date[] days = new Date[5]; days[0] = new Date(2006,5,4); days[1] = new Date(2006,7,4); days[2] = new Date(2008,5,4); days[3] = new Date(2004,5,9); days[4] = new Date(2004,5... 阅读全文
posted @ 2011-11-18 17:29 ①只耳 阅读(257) 评论(0) 推荐(0) 编辑
摘要: public class TestArgs{ public static void main(String[] args){ if(args.length<3){ System.out.println("usage java TestArgs \"n1\" \"op\"\"n2\""); System.exit(-1); } double d1 = Double.parseDouble(args[0]); double d2 = Double.parseDouble(arg... 阅读全文
posted @ 2011-11-15 13:52 ①只耳 阅读(237) 评论(0) 推荐(0) 编辑