自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 java排序算法

相关博客:https://blog.csdn.net/yushiyi6453/article/details/76407640

2020-03-24 11:04:08 63

原创 重写和重载的区别

重写:重写父类中的方法,名相同,参数列表相同,方法返回值相同。重载:新增名相同,参数列表返回值不同的函数。

2020-03-24 10:32:20 85

原创 最大公约数

import java.util.*;public class Main { public static int gcd(int a,int b) { return a == 0 ? b : gcd(b % a, a); } public static void main(String[] args) { Scanner in=...

2020-03-24 10:24:00 74

原创 Java 文件的拷贝(缓冲字节流)代码

//文件的拷贝public class Copy { public static void copy(String inputPath, String outputPath) throws IOException { long start = System.currentTimeMillis(); BufferedInputStream buffer...

2019-09-23 17:16:06 150

原创 Java 二分法查找(折半查找)代码

//二分法查找 public static int binarySearch(int[] arr, int find) { if (null == arr || arr.length == 0) { System.out.println("Input parameter is invalid!"); return -1; ...

2019-09-23 17:13:25 142

原创 java 选择排序代码

//选择排序 public static boolean selectSort(int[] arr){ if(null == arr || arr.length == 0){ System.out.println("Input parameter is invalid!");//输入参数无效 return false; ...

2019-09-23 17:11:06 195

原创 java 冒泡排序代码

//冒泡排序 public static boolean bubbleSort(int[] arr){ if(null == arr || arr.length == 0){ System.out.println("Input parameter is invalid!"); return false; }...

2019-09-23 17:09:43 105

原创 java 快速排序代码

public class QuickSort { public static void main(String[] args) { int[] arr = { 49, 38, 65, 97, 23, 22, 76, 1, 5, 8, 2, 0, -1, 22 }; quickSort(arr, 0, arr.length - 1); Syst...

2019-09-23 11:07:29 112

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除