上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: package d0923; public class TestException { public static void main(String[] args) { for(int i=0;i 阅读全文
posted @ 2016-09-25 09:10 削肾客 阅读(436) 评论(0) 推荐(0) 编辑
摘要: //接口Compute package jieKou; public interface Compute { int Computer(int n,int m); } //加 package jieKou; public class Jia implements Compute { @Overrid 阅读全文
posted @ 2016-09-24 16:03 削肾客 阅读(2820) 评论(0) 推荐(0) 编辑
摘要: //接口Swim package jieKou; public interface ICanswim { void Swim(); } //接口Fly package jieKou; public interface ICanfly { void Fly(); } //抽象方法ActionChara 阅读全文
posted @ 2016-09-24 15:59 削肾客 阅读(248) 评论(0) 推荐(0) 编辑
摘要: //接口:CentralPartyCommittee package jieKou; public interface CentralPartyCommittee { void partyLeader(); } //抽象类:StateCouncil package jieKou; public in 阅读全文
posted @ 2016-09-24 15:54 削肾客 阅读(409) 评论(0) 推荐(0) 编辑
摘要: //接口IInterfaceA1 package jieKou; public interface IInterfaceA1 { int method(int n); } //ClassA类 package jieKou; public class ClassA implements IInterf 阅读全文
posted @ 2016-09-23 22:04 削肾客 阅读(581) 评论(0) 推荐(0) 编辑
摘要: //接口InterfaceA package jieKou; public interface IInterfaceA { void printCapitalLetter(); } //接口InterfaceB package jieKou; public interface IInterfaceB 阅读全文
posted @ 2016-09-23 21:21 削肾客 阅读(898) 评论(0) 推荐(0) 编辑
摘要: //Animal 类 package d922B; public class Animal { private String kind; private int legs,count; public String getKind() { return kind; } public void setK 阅读全文
posted @ 2016-09-23 19:18 削肾客 阅读(1689) 评论(0) 推荐(0) 编辑
摘要: // 图形类Shape package d922B; public class Shape { double getArea(ShapePara x){ return x.getArea(); } double getArea(Rect y) { return y.getA() y.getB(); 阅读全文
posted @ 2016-09-22 19:48 削肾客 阅读(5609) 评论(0) 推荐(0) 编辑
摘要: //接口 ShapePara package d922B; public interface ShapePara { int getArea(); int getCircumference(); } //圆类 package d922B; public class Circle implements 阅读全文
posted @ 2016-09-22 19:46 削肾客 阅读(2855) 评论(0) 推荐(0) 编辑
摘要: //Monkey类 package d922; public class Monkey { Monkey() { } Monkey (String s) { System.out.println(s); } public void speak() { System.out.println("咿呀") 阅读全文
posted @ 2016-09-22 17:53 削肾客 阅读(4553) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页