摘要: package TestArray;import java.util.Arrays;/** * 二分法查找 */public class Test { public static void main(String[] args) { int[] arr = {30, 20, 50, 10, 80, 阅读全文
posted @ 2018-11-13 16:04 雷神约 阅读(237) 评论(0) 推荐(0) 编辑
摘要: public static void maopao() { int temp; int[] values = {2, 34, 0, 245}; for (int i = 0; i < values.length; i++) { // 每次操作都会给最大的找出来 for (int j = 0; j < 阅读全文
posted @ 2018-11-13 15:24 雷神约 阅读(117) 评论(0) 推荐(0) 编辑