摘要:
package Assignment; public class Assignment01 { public static void main(String[] args) { int[] array = { 10, 20, 30, 40, 50 }; for (int n : array) { S 阅读全文
摘要:
package assignment; public class Assignment01 { /** * @param args */ public static void main(String[] args) { int[] a = {10, 20, 30, 40, 50}; for (int 阅读全文
摘要:
package assignment; public class Assignment01 { /** * @param args */ public static void main(String[] args) { int sum = 0; for (int n = 1; n <= 100; n 阅读全文
摘要:
package assignment; public class Assignment01 { /** * @param args */ public static void main(String[] args) { int sum = 0; int n = 0; for (n = 3; n <= 阅读全文
摘要:
输入一个年份,判断是不是闰年(能被4整除但不能被100整除,或者能被400整除) package com.homework04; import java.util.Scanner; public class Assignment01 { public static void main(String[ 阅读全文
摘要:
package com.homework03; import java.util.Scanner; public class Main01 { public static void main(String[] args) { Scanner scanner = new Scanner(System. 阅读全文
摘要:
package com.homework02; public class Main { public static void main(String[] args) { float radius = 10.0f; float area; float pi = 3.1415926f; area = p 阅读全文