上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页
摘要: 1 public class Text3{ 2 public static void main(String[] args){ 3 for(int i=0;i=5){ 13 for(int j=3;j>=7-i;j--){ 14 System.out.print(" "); 15 ... 阅读全文
posted @ 2016-09-17 23:54 火山林风 阅读(177) 评论(0) 推荐(0)
摘要: 1 public class Test3 2 { 3 public static void main(String[] args) 4 { 5 Student s1=new Student(10,"貂蝉",18); 6 Student s2=new Student(11,"西施",17); 7 Student s3=... 阅读全文
posted @ 2016-09-17 20:27 火山林风 阅读(172) 评论(0) 推荐(0)
摘要: 1 public class Text1 2 { 3 public static void main(String[] args) 4 { 5 System.out.println("求数组中最大数跟最小数:a[][]={{3,2,6},{6,8,2,10},{5},{12,3,23}}"); 6 int[][] a={{3,2,6}... 阅读全文
posted @ 2016-09-17 16:32 火山林风 阅读(246) 评论(0) 推荐(0)
摘要: 1 import java.util.Scanner; 2 import java.util.Random; 3 public class Text1 4 { 5 public static void main(String[] args) 6 { 7 Code code=new Code(); 8 code.start(); ... 阅读全文
posted @ 2016-09-17 03:45 火山林风 阅读(242) 评论(0) 推荐(0)
摘要: 1 import java.util.Scanner; 2 import java.util.InputMismatchException; 3 public class Text2 4 { 5 public static void main(String[] args) 6 { 7 System.out.print("我... 阅读全文
posted @ 2016-09-16 16:00 火山林风 阅读(244) 评论(0) 推荐(0)
摘要: 1 import java.util.Scanner; 2 import java.util.Random; 3 public class HomeWork0914 implements HomeWork 4 { 5 /*成员变量、常量定义区*/ 6 Scanner scanner=new Scanner(System.in);//定义扫描器实例变量... 阅读全文
posted @ 2016-09-15 18:02 火山林风 阅读(243) 评论(0) 推荐(0)
摘要: 1 public class HomeWork0916 implements HomeWork 2 { 3 /*方法调用区*/ 4 //实现接口,获取家庭作业题目 5 public void getHRMessage() 6 { 7 getMs(); 8 } 9 //实现接口,获取家庭作业答卷... 阅读全文
posted @ 2016-09-15 13:35 火山林风 阅读(266) 评论(0) 推荐(0)
摘要: 1 public class Client 2 { 3 public static void main(String[] args) 4 { 5 //生成家庭作业控制类的实例 6 HomeWorkController homeWorkController=new HomeWorkController 阅读全文
posted @ 2016-09-15 10:58 火山林风 阅读(200) 评论(0) 推荐(0)
摘要: 1 import java.util.Random; 2 3 public class Text1 4 { 5 public static void main(String[] args) 6 { 7 int[] num=new int[8]; //方法调用区-----定义8个随机数存放的数组 8 num=getNu... 阅读全文
posted @ 2016-09-14 01:04 火山林风 阅读(188) 评论(0) 推荐(0)
摘要: public class Text1 { public static void main(String[] args) { System.out.println("题目一:一张纸的厚度大约是0.08mm,对折多少次之后能达到珠穆朗玛峰的高度(8848.13米)?"); double height=0.08; for(int i=1;;i++) { height*=2; ... 阅读全文
posted @ 2016-09-12 20:37 火山林风 阅读(145) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页