摘要:
JAVA语言提供了两种方法,sort()方法和 binarySearch()方法,可以方便地对数组进行排序和搜索。sort()方法使用改进的快速排序算法将数组中的元素进行升序排列,而binarySearch()方法在一个数组中搜索某个指定值。因为 binarySearch()方法使用二进制的搜索方法... 阅读全文
posted @ 2015-08-07 15:53
洗尽铅华终究染懵懂
阅读(669)
评论(0)
推荐(0)
摘要:
DecimalFormat 是 NumberFormat 的一个具体子类,用于格式化十进制数字。DecimalFormat 包含一个模式 和一组符号符号含义:0 一个数字# 一个数字,不包括 0. 小数的分隔符的占位符, 分组分隔符的占位符; 分隔格式。- 缺省负数前缀。% 乘以 100 和作为百分... 阅读全文
posted @ 2015-08-07 11:26
洗尽铅华终究染懵懂
阅读(298)
评论(0)
推荐(0)
摘要:
深复制:System.arraycopy(source array name, starting source element index,target array name, starting target element index, number of elements to be copie... 阅读全文
posted @ 2015-08-07 10:40
洗尽铅华终究染懵懂
阅读(393)
评论(0)
推荐(0)
浙公网安备 33010602011771号