摘要: 冒泡排序 1、比较数组中,两个相邻的元素,如果第一个比第二个数大,我们就交换它们的位置 2、每一次比较都会产生出一个最大或者最小的数字 3、依次循环,直到结束! public static int[] sort(int[] array) { //临时变量 int temp = 0; //外层循环,判 阅读全文
posted @ 2021-11-11 17:00 王双颖 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 生产中比较简单且常用的方法 long startTime = System.currentTimeMillis(); //中间程序或者方法 long endTime = System.currentTimeMillis(); long handleTime = endTime -startTime; 阅读全文
posted @ 2021-11-11 16:54 王双颖 阅读(46) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示