2014年10月5日

2014/10/5

摘要: 1Paint() 1 package hello; 2 import java.awt.*; 3 public class helloworld 4 { 5 public static void main(String[] args)throws Exception 6 { 7 ... 阅读全文

posted @ 2014-10-05 21:06 平庸 阅读(104) 评论(0) 推荐(0) 编辑

2014年10月3日

2014/10/3

摘要: 1Frame 1 package hello; 2 import java.awt.*; 3 import java.io.*; 4 import java.net.*; 5 public class helloworld 6 { 7 public static void main(Stri... 阅读全文

posted @ 2014-10-03 11:31 平庸 阅读(118) 评论(0) 推荐(0) 编辑

2014年9月29日

2014/9/29

摘要: 1 1 package hello; 2 3 import java.io.DataInputStream; 4 import java.net.*; 5 6 public class helloworld 7 { 8 public static void main(String[] a... 阅读全文

posted @ 2014-09-29 14:15 平庸 阅读(136) 评论(0) 推荐(0) 编辑

2014年9月28日

2014/9/28消费生产

摘要: 1 package ha; 2 import java.io.*; 3 import java.util.*; 4 5 public class wori 6 { 7 public static void main(String args[]) 8 { 9 ... 阅读全文

posted @ 2014-09-28 08:58 平庸 阅读(94) 评论(0) 推荐(0) 编辑

2014/9/28

摘要: 1Thread Runnable接口 1 public class wori 2 { 3 public static void main(String args[]) 4 { 5 Animal a = new Animal(); 6 Thread b... 阅读全文

posted @ 2014-09-28 08:57 平庸 阅读(86) 评论(0) 推荐(0) 编辑

2014年9月24日

2014/9/23

摘要: 1System.in 1 public class wori //先用InputStreamReader套System.in,再用BufferedReader套是常用方法 2 { 3 public static void... 阅读全文

posted @ 2014-09-24 13:10 平庸 阅读(117) 评论(0) 推荐(0) 编辑

2014年9月22日

2014/9/22

摘要: 1System.in 1 public class wori //先用InputStreamReader套System.in,再用BufferedReader套是常用方法 2 { 3 public stat... 阅读全文

posted @ 2014-09-22 21:09 平庸 阅读(137) 评论(0) 推荐(0) 编辑

2014年9月21日

2014/9/21

摘要: 1public class wori{public static void main(String args[]){FileWriter out = null;FileReader in = null;int b = 0;int n = 0; //要是放到try里,最后一句无法通过,try也是作用域... 阅读全文

posted @ 2014-09-21 22:59 平庸 阅读(130) 评论(0) 推荐(0) 编辑

2014年9月20日

sort()与Comparable接口

摘要: sort()一般用于 对象 数组或者List类(Set不可)排序,需要类实现Comparable接口void static sort(List list)根据元素的自然顺序 对指定列表按升序进行排序是属于Collections类的一个静态方法,也就是说可以这样调用:int[] a={.....}; ... 阅读全文

posted @ 2014-09-20 12:43 平庸 阅读(206) 评论(0) 推荐(0) 编辑

2014年9月18日

List接口,Collections类,Comparable接口

摘要: List接口的方法Object get(int index)Object set(int index, Object element); 将旧的元素返回void add(int index, Object element); 全部往后退一格Object remove(int index)... 阅读全文

posted @ 2014-09-18 13:47 平庸 阅读(127) 评论(0) 推荐(0) 编辑

导航