摘要:
package OO.day01; public class TetrisCell { int totalRow = 20; int totalcol = 10; //定义横宽 int row; int col; //下降 public void drop(int d) { row +=d; } / 阅读全文
摘要:
package day01; import java.util.Arrays; import java.util.Random; import java.util.Scanner; public class BubbleSort { public static void main(String[] args) { System.out.println("请输入要随机生成的数组长度... 阅读全文
摘要:
package day01; import java.util.Arrays; import java.util.Random; public class MaxOfArray { public static void main(String[] args) { int[] arr = new in 阅读全文
摘要:
package day01; //输出1-100中质数,并且每十个换行 public class PrimeNum { public static void main(String[] args) { //并非一次判断用开关 int count = 0; for(int i = 2 ; i <= 1 阅读全文
摘要:
package day01; import java.util.Scanner; public class leap_year { public static void main (String[] args) { System.out.println("亲输入年份,闰年输出true,否则输出fal 阅读全文