自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 问答 (1)
  • 收藏
  • 关注

原创 插入排序 InsertionSort

public class InsertionSort { public static void main(String[] args) { int[] arr = { 5,8,2,6,100,8,4,6,45,32,888,9,3,4,7,1 }; for (int j = 0; j < arr.length; j++) { for (int i = j + 1; i < arr.length; i++) { if (arr[i] < arr[j]) {.

2021-08-12 19:41:09 61 1

原创 冒泡排序 BubbleSort

public class BubbleSort { public static void main(String[] args) { int[] arr = { 1,3,4,6,8,9 }; for (int j = arr.length; j >0; j--) { for (int i = 0; i < arr.length-1; i++) { here: for (int k = 0; k < arr.length; k++) { if(a.

2021-08-12 19:40:30 47

原创 选择排序 SelectionSort

public class SeletionSort { public static void main(String[] args) { int[] arr = { 3, 6, 9, 8, 7, 5, 4, 2, 1 }; System.out.println("原始数组为:"); print(arr); System.out.println("================"); for (int j = 0; j < arr.length; j++) { int .

2021-08-12 19:39:43 39

原创 面向自己的多线程笔记 #2线程的创建

三种创建方式: Tread class :继承Thread类 *Runnable借口:实现Runnable接口 Callable接口:实现Callable接口 用继承Thread的方法 自定义一个类继承Thread类 public class anyname extends Thread { private String name; private int age; public anyname(String name,int age ) { this.name = n

2021-08-04 12:02:02 48

原创 面向自己的多线程笔记#1 线程 进程 多线程

类是一个模板,对象是一个实例

2021-08-04 09:41:32 47

原创 面向自己的Java笔记#1 *注释

注释:单行注释: // 多行注释: /* ... */ 文档注释: /** ... @Discription @Author*/

2021-08-03 23:18:42 75

空空如也

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

TA关注的人

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