摘要: package a; import java.util.*; public class YiChang { public static void main(String[] args) { System.out.println("输入整数:"); try { Scanner a=new Scanne 阅读全文
posted @ 2016-05-27 18:35 凌零聆 阅读(405) 评论(0) 推荐(0) 编辑
摘要: m的值无限制时 阅读全文
posted @ 2016-05-27 14:22 凌零聆 阅读(538) 评论(0) 推荐(0) 编辑
摘要: package a; public class QiuHe { private int m; private int n; public int getM() { return m; } public void setM(int m) { this.m = m; } public int getN( 阅读全文
posted @ 2016-05-27 11:34 凌零聆 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: package a; public class SanWeiOuShu { public static void main(String[] args) { String str="123456789"; String a,b,c; int sum=0; for (int i = 1; i < 9; i+=2) ... 阅读全文
posted @ 2016-05-27 11:05 凌零聆 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: 抽象方法:在类中没有方法体的方法,就是抽象方法。 抽象类:含有抽象方法的类就叫抽象类。 抽象类中的抽象方法必须被实现!如果一个子类没有实现父类中的抽象方法,则子类也成为了一个抽象类!抽象类中的普通方法,可以不必实现。1 用abstract关键字来修饰一个类时,这个类叫做抽象类;用abstract来修 阅读全文
posted @ 2016-05-27 10:24 凌零聆 阅读(258) 评论(0) 推荐(0) 编辑