摘要: System System:类中的方法和属性都是静态的。 out:标准输出,默认是控制台。 in:标准输入,默认是键盘。 System描述系统一些信息。获取系统属性信息:Properties getProperties()。 示例代码如下: import java.util.Properties; 阅读全文
posted @ 2016-03-10 22:26 叶十一少 阅读(342) 评论(0) 推荐(0) 编辑
摘要: Collections 集合框架的工具类 着重讲解以下方法: 1、sort(): 1º根据元素的自然顺序对指定列表按升序进行排序,列表中的所有元素都必须实现comparable接口。 public static <T extends Comparable<? super T>> void sort( 阅读全文
posted @ 2016-03-10 20:25 叶十一少 阅读(220) 评论(0) 推荐(0) 编辑