曦~妍  
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页

2016年5月28日

摘要: 1 package Exception; 2 import java.util.*; 3 public class Bank { 4 /*建立exception包,建立Bank类,类中有变量double balance表示存款, 5 * Bank类的构造方法能增加存款,Bank类中有取款的发方法withDrawal(double dAmount), 6 ... 阅读全文
posted @ 2016-05-28 22:26 曦~妍 阅读(180) 评论(0) 推荐(0) 编辑
 
摘要: 1 package jihe; 2 import java.util.*; 3 public class Test1 { 4 5 public static void main(String[] args) { 6 // 将1-100之间的所有正整数存放于一个List集合中,并将集合中索引位置是10的对象从集合中移除 7 ArrayList... 阅读全文
posted @ 2016-05-28 22:23 曦~妍 阅读(160) 评论(0) 推荐(0) 编辑

2016年5月27日

摘要: package yichang; import java.util.*; public class Test1 { public static void main(String[] args) { // TODO 自动生成的方法存根 Scanner sc=new Scanner(System.in); try { ... 阅读全文
posted @ 2016-05-27 22:04 曦~妍 阅读(101) 评论(0) 推荐(0) 编辑
 
摘要: 抽象类 抽象类往往用来表征对问题领域进行分析、设计中得出的抽象概念,是对一系列看上去不同,但是本质上相同的具体概念的抽象。 通常在编程语句中用 abstract 修饰的类是抽象类。在C++中,含有纯虚拟函数的类称为抽象类,它不能生成对象;在java中,含有抽象方法的类称为抽象类,同样不能生成对象。 阅读全文
posted @ 2016-05-27 22:01 曦~妍 阅读(153) 评论(0) 推荐(0) 编辑
 
摘要: 1 package jiekou; 2 3 public interface CentralPartyCommittee { 4 /*(1)该应用程序中有一个“党中央”接口:CentralPartyCommittee,该接口中 5 有个“坚持党的领导”方法:void partyLeader()*/ 6 void partyLeader(); 7 ... 阅读全文
posted @ 2016-05-27 14:23 曦~妍 阅读(148) 评论(0) 推荐(0) 编辑
 
摘要: 1 package jiekou; 2 3 public interface InterfaceA1 { 4 /*(1)编写一个接口:InterfaceA,只含有一个方法int method(int n); 5 (4)编写测试类E,在测试类E的main方法中使用接口回调的形式来测试实现 6 接口的类。*/ 7 int method(int n); 8 } 1 packag... 阅读全文
posted @ 2016-05-27 14:08 曦~妍 阅读(173) 评论(0) 推荐(0) 编辑
 
摘要: 1 package jiekou; 2 3 public interface InterfaceA { 4 /* 5 * InterfaceA和InterfaceB; 6 * 在接口InterfaceA中有个方法void printCapitalLetter(); 7 * 在接口InterfaceB中有个方法void printLow... 阅读全文
posted @ 2016-05-27 14:03 曦~妍 阅读(117) 评论(0) 推荐(0) 编辑

2016年5月24日

摘要: 你需要知道的Android拍照适配方案 字数4198 阅读2524 评论14 喜欢49 近段时间,家里陪自己度过大学四年的电脑坏了,挑选好的新电脑配件终于在本周全部到货,自己动手完成组装。从AMD到i7的CPU,6G内存到14G内存,打开 AndroidStudio 的速度终于杠杆的上去了,感动到泪 阅读全文
posted @ 2016-05-24 09:43 曦~妍 阅读(3565) 评论(0) 推荐(0) 编辑
 
摘要: 1 package jicheng; 2 3 public class Car { 4 /* 5 * 编写一个Car类,具有final类型的属性品牌,具有功能drive; 6 * 定义其子类Aodi和Benchi,具有属性:价格、型号;具有功能:变速; 7 * 定义主类E,在其main方法中分别创建Aodi和Benchi的对象并测试... 阅读全文
posted @ 2016-05-24 09:02 曦~妍 阅读(292) 评论(0) 推荐(0) 编辑

2016年5月23日

摘要: 1 package jicheng; 2 3 public class Rect { 4 /* 5 * 25.按要求编写一个Java应用程序: (1)编写一个矩形类Rect,包含: 6 * 两个protected属性:矩形的宽width;矩形的高height。 两个构造方法: 7 * 1.一个带有两个参数的构造方法,用于将width和... 阅读全文
posted @ 2016-05-23 21:51 曦~妍 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页