摘要:
package Day01; import java.util.Scanner; import java.util.Random; public class Lianxiti { public static void main(String[] args) { // TODO Auto-genera 阅读全文
摘要:
1.package finish; import java.util.Scanner; public class finish{ public static void main(String[] args){ Computer c1 = new Computer(); c1.showComputer 阅读全文
摘要:
1.package finish; public class csy { int length; int width; public static void main(String[] args){} public void getArea() { int a=width*length; Syste 阅读全文
摘要:
1.package finish; import java.util.Scanner; public class csy { public static void main(String[] args) { avg10(); } public static void avg10() { int[] 阅读全文
摘要:
1.package finish; import java.util.Scanner; public class csy { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.o 阅读全文
摘要:
1.package finish; public class csy { public static void main(String[] args) { int arr [] ={10,20,30,40,50}; for(int i = 0;i<arr.length;i++){ System.ou 阅读全文
摘要:
1.package finish; public class csy { public static void main(String[] args) { for (int i = 100; i <= 999; i++) { int a = i / 1 % 10;//个位 int b = i / 1 阅读全文
摘要:
1. for循环: package finish; import java.util.*; public class csy { public static void main(String[] args) { int sum=0; for (int i = 1; i <=100 ; i++) { 阅读全文
摘要:
1.package finish; import java.util.*; public class csy { public static void main(String[] args) { System.out.println("请输入一个年份:"); Scanner sc = new Sca 阅读全文
摘要:
1.package finish; public class csy { public static void main(String[] args) { // TODO Auto-generated method stub int a = 100; int b = 200; int c; c = 阅读全文