摘要: 为什么会有基本类型包装类 将基本数据类型封装成对象的好处在于可以在对象中定义更多的功能方法操作该数据。 常用操作: 1.用于基本数据类型与字符串之间的转换 基本类型和包装类的对应: byte Byte short Short int Integer long Long float Float dou 阅读全文
posted @ 2018-11-12 22:14 红豆· 阅读(2094) 评论(0) 推荐(0) 编辑
摘要: Array类概述: 针对数组排序进行操作的工具类 提供了排序,查找等功能 成员方法: public static String toString(int 【】 a) 数组转字符串 public static void sort(int 【】a) 数组排序 public static int bina 阅读全文
posted @ 2018-11-12 21:19 红豆· 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 冒泡排序: 选择排序: 二分查找:前提数组有序 阅读全文
posted @ 2018-11-12 20:55 红豆· 阅读(127) 评论(0) 推荐(0) 编辑