上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: package BubbleSort; //冒泡排序 import java.util.Arrays; public class BubbleSort { public static void BubbleSort(int[] arr) { int temp;//定义一个临时变量 for(int i 阅读全文
posted @ 2021-11-16 10:39 还要再努力一些吧 阅读(21) 评论(0) 推荐(0)
摘要: Java中的堆栈问题 1.声明数组 int[] array = null; //将array放入了栈中,压入栈底 2.创建数组 array = new int[10]; //在堆中开辟空间 3.给数组元素赋值 nums[0] = 1; nums[1] = 0; nums[2] = 3; nums[3 阅读全文
posted @ 2021-11-14 20:43 还要再努力一些吧 阅读(20) 评论(0) 推荐(0)
摘要: package com.rui.demo; public class Demo04 { public static void main(String[] args) { //打印三角形 for (int i = 1; i <= 5; i++) { for (int j = 5; j >= i; j- 阅读全文
posted @ 2021-11-10 10:42 还要再努力一些吧 阅读(7) 评论(0) 推荐(0)
摘要: package com.rui.demo; public class Demo03 { public static void main(String[] args) { //99乘法表 for (int j = 1; j <= 9; j++) { for (int i = 1; i <= j; i+ 阅读全文
posted @ 2021-11-09 15:43 还要再努力一些吧 阅读(16) 评论(0) 推荐(0)
摘要: 反编译查看class文件 // Source code recreated from a .class file by IntelliJ IDEA String name = "睿周周"; byte var3 = -1; switch(name.hashCode()) { case 691456: 阅读全文
posted @ 2021-11-04 15:56 还要再努力一些吧 阅读(38) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页