04 2020 档案

摘要:public class fff public class Rectangle { int length; int width; public void getPer() { System.out.println("矩形的周长=" + (length + width) * 2); } public 阅读全文
posted @ 2020-04-30 11:42 啪啪怪 阅读(140) 评论(0) 推荐(0) 编辑
摘要:package fff; import java.util.Random; import java.util.Scanner; public class menu { public static void main(String[] args) { mainMenu(); } public stat 阅读全文
posted @ 2020-04-28 14:18 啪啪怪 阅读(156) 评论(0) 推荐(0) 编辑
摘要:public class Person { double height; int age; String name; public void sayHello() { System.out.println("Hello,my name is "+name); } } package www; pub 阅读全文
posted @ 2020-04-23 11:27 啪啪怪 阅读(105) 评论(0) 推荐(0) 编辑
摘要:public class fff { int length; int width; public void getArea(){ System.out.println("s="+length*width); } public void getPer(){ System.out.println("c= 阅读全文
posted @ 2020-04-19 15:58 啪啪怪 阅读(106) 评论(0) 推荐(0) 编辑
摘要:public class fff { public static void main(String[] args) { int[] a = new int[]{1, 3, 2, 5, 8}; int t; for (int i = 0; i < a.length - 1; i++) { for (i 阅读全文
posted @ 2020-04-16 11:46 啪啪怪 阅读(191) 评论(0) 推荐(0) 编辑
摘要:public class fff{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int[] arr=new int[5]; for (int i = 0; i <=arr.length-1; 阅读全文
posted @ 2020-04-14 12:47 啪啪怪 阅读(123) 评论(0) 推荐(0) 编辑
摘要:package fff pubilc class fff{ pubilc static void main(String[] args){ int [] array={10,20,30,40,50}; for (int i:arr){ System.out.println(i); } } publi 阅读全文
posted @ 2020-04-09 11:27 啪啪怪 阅读(137) 评论(0) 推荐(0) 编辑
摘要:public class fff { public static viod main(string[]args){ for(int m,b,s=0,j; {m=i;s=0; do{ b=m%10; s=s+b*b*b; m=m/10; }while(m!=0); if(s==i) {a[j]=s;j 阅读全文
posted @ 2020-04-02 11:28 啪啪怪 阅读(168) 评论(0) 推荐(0) 编辑