摘要: package task1; public class q { String color; int cpu; public void showColor(){ System.out.println("笔记本的颜色为:"+color); } public void showCpu(){ System. 阅读全文
posted @ 2020-04-23 17:28 -Sehnsucht 阅读(100) 评论(0) 推荐(0) 编辑
摘要: package task1; public class q { int length; int width; public void showAll() { System.out.println("矩形长为:" + length + "矩形宽为:" + width); } public void g 阅读全文
posted @ 2020-04-23 17:23 -Sehnsucht 阅读(64) 评论(0) 推荐(0) 编辑
摘要: package task1; import java.util.*; public class q { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[] a = new int 阅读全文
posted @ 2020-04-16 14:39 -Sehnsucht 阅读(97) 评论(0) 推荐(0) 编辑
摘要: package task1; import java.util.*; public class q { public static void main(String[] args) { int[] a = {1,2,4,3,5}; for(int i=0; i<a.length-1; i++) { 阅读全文
posted @ 2020-04-15 14:07 -Sehnsucht 阅读(99) 评论(0) 推荐(0) 编辑
摘要: package task1; import java.util.*; public class q { public static void main(String[] args) { int[] arr= new int[]{10,20,30,40,50}; System.out.println( 阅读全文
posted @ 2020-04-09 14:45 -Sehnsucht 阅读(142) 评论(0) 推荐(0) 编辑
摘要: package task1; import java.util.*; public class q { public static void main(String[] args) { int g,s,b,x; for(x=100;x<=999;x++){ b=x/100; s=x/10%10; g 阅读全文
posted @ 2020-04-02 19:30 -Sehnsucht 阅读(129) 评论(0) 推荐(0) 编辑
摘要: package task1; import java.util.*; public class q { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.printl 阅读全文
posted @ 2020-03-26 14:19 -Sehnsucht 阅读(138) 评论(0) 推荐(0) 编辑
摘要: package task1; import java.util.*; public class q { public static void main(String[] args) { Scanner input=new Scanner(System.in); System.out.println( 阅读全文
posted @ 2020-03-24 23:37 -Sehnsucht 阅读(126) 评论(0) 推荐(0) 编辑
摘要: package task1; public class q { public static void main(String[] args){ int a=5,b=6,c; c=a;a=b;b=c; System.out.println("a="+a); System.out.println("b= 阅读全文
posted @ 2020-03-19 11:55 -Sehnsucht 阅读(87) 评论(0) 推荐(0) 编辑
摘要: package task1; public class q { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("zhanghengjiuwudi"); } 阅读全文
posted @ 2020-03-08 15:22 -Sehnsucht 阅读(85) 评论(0) 推荐(0) 编辑