摘要: public class day_5_1 { public static void main(String[] args) { /*方法,函数 什么是方法? 具有特定功能的一段独立小程序 方法作用? 1,提高了代码的复用性 2,提高了代码的维护性 方法的定义格式? 修饰符 返回值类型 方法的名字 ( 阅读全文
posted @ 2024-03-15 20:13 公子Learningcarer 阅读(3) 评论(0) 推荐(0) 编辑
摘要: public class day_5 { public static void main(String[] args) { /*排序*/ //选择排序 int[] arr = {1, 2, 3, 5, 4}; //排序前 for (int i = 0; i < arr.length; i++) { 阅读全文
posted @ 2024-03-15 15:19 公子Learningcarer 阅读(2) 评论(0) 推荐(0) 编辑