java
codethisworld
这个作者很懒,什么都没留下…
展开
-
java学习笔记--Exception
1、 in all standard Exception,there are two constructors: the default one and the other with a string argument which can be used to show specific problems information. 2、 throw new NullPointerExcept原创 2015-07-24 16:29:48 · 293 阅读 · 0 评论 -
java中对集合或数组进行排序有两种方法:Comparable 与 Comparator
java中对集合或数组进行排序有两种方法:Comparable 与 Comparator原创 2015-10-06 10:55:21 · 469 阅读 · 0 评论 -
eclipse 测试java项目基础
1 生成数据 public static void getIn(String in)throws Exception{ Random rand=new Random(47); BufferedWriter bw=new BufferedWriter(new FileWriter(in)); StringBuilder sb=new StringBuilder(); int testcas原创 2016-04-02 11:21:19 · 735 阅读 · 0 评论 -
string to int
注意空串,正负号,非数字字符,整数范围原创 2016-04-02 15:43:14 · 396 阅读 · 0 评论 -
备战工作0320-插入排序
备战工作0320-插入排序插入排序进行过程中把数据分成两部分,已经排序好了的部分sorted和未排序好的部分unsorted,每次从unsorted中拿一个元素来插入到sorted中适当的位置,使插入后sorted任然是排好序的。初始时sorted为空,unsorted中有全部的元素。插入排序的一个简单实现就是将unsorted中拿出的原数a与sorted中的元素一个一个的比较,将比a大的(假设非原创 2016-03-21 22:08:13 · 249 阅读 · 0 评论