摘要: 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 啪啪怪 阅读(155) 评论(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 啪啪怪 阅读(104) 评论(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 啪啪怪 阅读(105) 评论(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 啪啪怪 阅读(190) 评论(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 啪啪怪 阅读(120) 评论(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 啪啪怪 阅读(134) 评论(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 啪啪怪 阅读(166) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class fff{ public static void main(String[] args){ import java.util.Scanner; public class fff { public static void ma 阅读全文
posted @ 2020-03-30 20:51 啪啪怪 阅读(216) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; public class fff{ public static void main(String args[]){ Scanner in=new Scanner(System.in); int a=in.nextInt(); switch(a){ case 1 阅读全文
posted @ 2020-03-26 12:11 啪啪怪 阅读(216) 评论(0) 推荐(0) 编辑
摘要: package test3; import java.util.*; public class abc { public static void main(String[] args) { // TODO Auto-generated method stub System.out.println(" 阅读全文
posted @ 2020-03-24 11:00 啪啪怪 阅读(179) 评论(0) 推荐(0) 编辑