摘要:
package fff; import java.util.Random; import java.util.Scanner; public class menu { public static void main(String[] args) { mainMenu(); } public stat 阅读全文
摘要:
public class Person { double height; int age; String name; public void sayHello() { System.out.println("Hello,my name is "+name); } } package www; pub 阅读全文
摘要:
public class fff { int length; int width; public void getArea(){ System.out.println("s="+length*width); } public void getPer(){ System.out.println("c= 阅读全文
摘要:
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 阅读全文
摘要:
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; 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文