摘要: package com.atanjin.exercise; /*此代码是练习1的一个改进,将操作数组的功能封装到方法中 * */ public class MethodExercise2 { public static void main(String[] args) { Student2 s[] 阅读全文
posted @ 2021-03-12 10:58 安苏暮 阅读(26) 评论(0) 推荐(0)
摘要: package come.atanjin.java;/* * 数组的冒泡排序的实现 */public class BubbleSortTest { public static void main(String[] args) { int arr[] = new int[]{2,15,5,152,58 阅读全文
posted @ 2021-03-11 18:01 安苏暮 阅读(48) 评论(0) 推荐(0)
摘要: class ForForTest { public static void main(String[] args) { for(int i = 1;i<=11;i+=2){//控制行数 for(int m = 1;m<=11-i;m+=2){ System.out.print(" "); } for 阅读全文
posted @ 2021-03-09 19:58 安苏暮 阅读(334) 评论(0) 推荐(0)