摘要: import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader; public class InputString { public static String getString() throws IOException{ InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); S... 阅读全文
posted @ 2013-04-19 23:53 William_Xiao 阅读(260) 评论(0) 推荐(0) 编辑
摘要: import java.io.IOException;import Input.InputString; /** * 冒泡排序 * @author xiaomi * 2012.3.29 */public class BubbleSort { public static void main(String[] args) throws IOException{ String s = InputString.getString(); String[] str = s.split(" "); int[] a = new int[str.length]; ... 阅读全文
posted @ 2013-04-19 23:52 William_Xiao 阅读(144) 评论(0) 推荐(0) 编辑
摘要: import java.io.IOException;import Input.InputString; /** * 选择排序 * @author xiaomi * 2012.3.29 */public class SelectSort { public static void main(String[] args) throws IOException{ String s = InputString.getString(); String[] str = s.split(" "); int[] a = new int[str.length]; ... 阅读全文
posted @ 2013-04-19 23:51 William_Xiao 阅读(131) 评论(0) 推荐(0) 编辑
摘要: import java.io.IOException;import Input.InputString; /** * 插入排序 * @author xiaomi * 2012.3.29 */public class InsertSort { public static void main(String[] args) throws IOException{ String s = InputString.getString(); String[] str = s.split(" "); int[] a = new int[str.length]; ... 阅读全文
posted @ 2013-04-19 23:49 William_Xiao 阅读(135) 评论(0) 推荐(0) 编辑
摘要: import java.io.IOException;import Input.InputString; /** * 希尔排序 * @author xiaomi * 2012.3.29 */public class ShellSort { public static void main(String[] args) throws IOException{ String s = InputString.getString(); String[] str = s.split(" "); int[] a = new int[str.length]; ... 阅读全文
posted @ 2013-04-19 23:47 William_Xiao 阅读(158) 评论(0) 推荐(0) 编辑
摘要: import java.io.IOException;import Input.InputString; /** * 快速排序 * @author xiaomi * 2012.04.02 */public class MergeSort { public static void main(String[] args) throws IOException{ String s = InputString.getString(); String[] str = s.split(" "); int[] a = new int[str.length];... 阅读全文
posted @ 2013-04-19 14:06 William_Xiao 阅读(168) 评论(0) 推荐(0) 编辑
摘要: /** * 快速排序 * @author xiaomi * 2012.4.2 */public class QuickSort { public static void main(String[] args) throws IOException{ String s = InputString.getString(); String[] str = s.split(" "); int[] a = new int[str.length+1]; for(int i = 0;i = pivot){ high-... 阅读全文
posted @ 2013-04-19 13:21 William_Xiao 阅读(158) 评论(0) 推荐(0) 编辑
摘要: package Sort;import java.io.IOException;import Input.InputString;public class HeapSort { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try { String str = InputString.getString(); String[] s = str.spl... 阅读全文
posted @ 2013-04-19 12:57 William_Xiao 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 在豆瓣看到有人推荐,就去图书馆找来看,一本使人深思的书,也是一本让人颠覆传统的书。初次接触经济学类的书籍,感觉之前二十多年的人生过得有点恍惚,全然不知道应该怎么生活才是有意义的。本书通俗易懂,以第一人称的口吻讲述着一个个的小故事,而每一个小故事都让人有思考的空间,带领读者一步步引人入胜。大多数人生活在无知和恐惧当中,只是为了钱而工作,不断重复着没钱的恐惧,工作,消费和没钱的恐惧这样的循环当中。大多数人工作的目的就是为了钱本身,让钱牵着自己的鼻子走,而不是去控制钱。要学习一些财务知识,基本的且很重要的是弄清楚资产与负债的区别,这一点很重要,很多人分不清楚什么是资产和负债,因而买入了负债,这样并不 阅读全文
posted @ 2013-04-18 21:57 William_Xiao 阅读(170) 评论(0) 推荐(0) 编辑