摘要: package Assignment; public class Assignment01 { public static void main(String[] args) { int[] array = { 10, 20, 30, 40, 50 }; for (int n : array) { S 阅读全文
posted @ 2021-04-27 14:19 SuoJing 阅读(39) 评论(0) 推荐(0) 编辑
摘要: package assignment; public class Assignment01 { /** * @param args */ public static void main(String[] args) { int[] a = {10, 20, 30, 40, 50}; for (int 阅读全文
posted @ 2021-04-20 11:53 SuoJing 阅读(54) 评论(0) 推荐(0) 编辑
摘要: package assignment; public class Assignment01 { /** * @param args */ public static void main(String[] args) { int sum = 0; for (int n = 1; n <= 100; n 阅读全文
posted @ 2021-04-12 16:32 SuoJing 阅读(46) 评论(0) 推荐(0) 编辑
摘要: package assignment; public class Assignment01 { /** * @param args */ public static void main(String[] args) { int sum = 0; int n = 0; for (n = 3; n <= 阅读全文
posted @ 2021-04-05 12:50 SuoJing 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package com.homework04; import java.util.Scanner; public class Assignment01 { public static void main(String[ 阅读全文
posted @ 2021-03-29 10:59 SuoJing 阅读(141) 评论(0) 推荐(0) 编辑
摘要: package com.homework03; import java.util.Scanner; public class Main01 { public static void main(String[] args) { Scanner scanner = new Scanner(System. 阅读全文
posted @ 2021-03-25 13:06 SuoJing 阅读(32) 评论(0) 推荐(0) 编辑
摘要: package com.homework02; public class Main { public static void main(String[] args) { float radius = 10.0f; float area; float pi = 3.1415926f; area = p 阅读全文
posted @ 2021-03-15 11:50 SuoJing 阅读(83) 评论(0) 推荐(0) 编辑