摘要: 1 class O3_1 { 2 public static void main(String args[ ]) { 3 int[][] twoD=new int[4][5]; 4 int i,j,k= 0; 5 for(i=0;i<twoD.length;i++) { 6 for(j=0;j<tw 阅读全文
posted @ 2020-11-28 12:55 李家宇 阅读(109) 评论(0) 推荐(0)
摘要: 1 public class JumpSentence { 2 public static void main(String args[ ]) { 3 for(int i=1;i<=10;i++) { 4 if(i==6) { //输出1~5这五个整数 5 break; 6 } 7 System.o 阅读全文
posted @ 2020-11-27 13:38 李家宇 阅读(73) 评论(0) 推荐(0)
摘要: 1 import java.util.*; 2 public class O1 { 3 public static void main(String args[ ]) { 4 int sum=0; 5 int i; //募捐人数 6 int money; 7 Scanner reader=new S 阅读全文
posted @ 2020-11-26 19:12 李家宇 阅读(86) 评论(0) 推荐(0)
摘要: 1 import java.util.*; 2 public class TextScore { 3 public static void main(String args[ ]) { 4 int score; 5 char grade; 6 Scanner reader=new Scanner(S 阅读全文
posted @ 2020-11-26 19:11 李家宇 阅读(43) 评论(0) 推荐(0)