nini1  

2016年8月14日

摘要: public class Four_04 { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.println("请输入一个正整数:"); int a=input.nex 阅读全文
posted @ 2016-08-14 20:13 nini1 阅读(800) 评论(0) 推荐(0)
 
摘要: TreeSet:如果要对对象进行排序,对象类要实现Comparable接口! TreeMap:如果要对对象进行排序,对象类要实现Comparable接口! 下面是我自己写的小程序主要传输对象 public class News implements Comparable<News>{ //news为 阅读全文
posted @ 2016-08-14 19:04 nini1 阅读(122) 评论(0) 推荐(0)