上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 28 下一页
摘要: ##1,新建Application类,作为程序的入口 package oop.demo02; public class Application { public static void main(String[] args) { //类,抽象的,需要实例化 Student xiaoming = ne 阅读全文
posted @ 2021-07-31 16:18 阿向向 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ##1、创建一个Student类 ,进行调用 package oop; //学生类; public class Student { //定义一个方法 // 非静态方法 public void say(){ System.out.println("同学们开始说话!!!"); } } ##1、创建Dem 阅读全文
posted @ 2021-07-31 13:16 阿向向 阅读(613) 评论(0) 推荐(0) 编辑
摘要: package oop; import java.io.IOException; //Demo01 类 public class Demo01 { // main 方法; public static void main(String[] args) { } /* 修饰符 返回值类型 方法名(...) 阅读全文
posted @ 2021-07-31 12:37 阿向向 阅读(20) 评论(0) 推荐(0) 编辑
摘要: ##1,稀疏数组的介绍 ##2,练习 ##3,编码 package array; /* 稀疏数组 数据结构 */ public class Demo08 { public static void main(String[] args) { // 创建一个二维数组;11*11 0:没有棋子 1:黑棋 阅读全文
posted @ 2021-07-30 19:25 阿向向 阅读(31) 评论(0) 推荐(0) 编辑
摘要: package array; import java.util.Arrays; /* 冒泡排序 */ public class Demo07 { final static int[] result={4,564,54,54,5,4,54,54,54,54,54,65,46,58,7,54,67,8, 阅读全文
posted @ 2021-07-30 18:46 阿向向 阅读(298) 评论(0) 推荐(0) 编辑
摘要: package array; import java.util.Arrays; public class Demo06 { final static int[] a = {1, 2, 13, 45, 45, 8, 4, 5465, 46, 54, 564, 1, 999, 54, 1, 54, 12 阅读全文
posted @ 2021-07-30 18:03 阿向向 阅读(37) 评论(0) 推荐(0) 编辑
摘要: package array; public class Demo05 { // 4行2列 // [4][2] /* 1,2 array[0] 2,3 array[1] 3,4 array[2] 4,5 array[3] */ final static int[][] array = {{1, 2}, 阅读全文
posted @ 2021-07-30 12:50 阿向向 阅读(89) 评论(0) 推荐(0) 编辑
摘要: package array; public class Demo04 { final static int[] arrays = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; public static void main(String[] args) { printArray( 阅读全文
posted @ 2021-07-30 12:14 阿向向 阅读(60) 评论(0) 推荐(0) 编辑
摘要: package array; public class Demo03 { public static void main(String[] args) { int[] arrays = {1, 2, 3, 4, 5, 6,7, 8, 9, 10, 11, 12, 13, 14}; test(); p 阅读全文
posted @ 2021-07-30 08:32 阿向向 阅读(72) 评论(0) 推荐(0) 编辑
摘要: package array; /** * 数组的三种初始化 */ public class Demo02 { public static void main(String[] args) { test(); test2(); } public static void test2() { int[] 阅读全文
posted @ 2021-07-30 08:30 阿向向 阅读(75) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 28 下一页