记录一下android自带颜色。
Constants
public static final int BLACK
Added in API level 1
Constant Value: -16777216 (0xff000000)
public static final int BLUE
Added in API leve...
分类:
移动开发 时间:
2014-08-01 19:44:42
阅读次数:
237
public class ItemAdapter extends ArrayAdapter { private final List items;public AnswerItemAdapter(Context c, List items) { super(c, 0, items...
分类:
移动开发 时间:
2014-08-01 19:25:52
阅读次数:
239
java中serialVersionUID的解释:serialVersionUID作用: 序列化时为了保持版本的兼容性,即在版本升级时反序列化仍保持对象的唯一性。有两种生成方式: 一个是默认的1L,比如:private static final long serialVersionUID = 1L;...
分类:
编程语言 时间:
2014-08-01 18:46:12
阅读次数:
250
五个关键字 和两个结构两个结构:1.ThrowableError表示错误Exception异常2.ExceptionRuntimeException(包括其子类)非RuntimeException(Checked异常)5个关键字:try, catch, finally, throws , throw...
分类:
编程语言 时间:
2014-08-01 18:32:32
阅读次数:
251
昨天我们分析了ArrayList的源码,我们可以看到,在其中还有一个类,名为SubList,其继承了AbstractList。// AbstractList类型的引用,所有继承了AbstractList都可以传进来 private final AbstractList parent;// ...
分类:
编程语言 时间:
2014-08-01 15:24:21
阅读次数:
224
public class MoneyUtil { private final static String[] CN_Digits = { "零", "壹", "貳", "叁", "肆", "伍", "陆", "柒", "捌", "玖", }; /** * 将数字型货币转换为中文型货币 *...
分类:
其他好文 时间:
2014-08-01 15:20:01
阅读次数:
163
1:只有与 finally 相对应的 try 语句块得到执行的情况下,finally 语句块才会执行。在 try 语句块之前返回(return)或者抛出异常,try 对应的 finally 语句块没有执行。 2:在 try 语句块中执行了 System.exit ...
分类:
编程语言 时间:
2014-08-01 14:00:41
阅读次数:
204
Java的异常处理是通过5个关键字来实现的:try,catch,throw,throws,finally。JB的在线帮助中对这几个关键字是这样解释的: Throws: Lists the exceptions a method could throw. Throw: Transfers co...
分类:
编程语言 时间:
2014-08-01 13:29:11
阅读次数:
271
注解校验依赖的是javax.validation和hibernate-validaton。 javax.validation validation-api 1.1.0.Final org.hibernate hibernate-validator 5.0.1.Fi...
分类:
Web程序 时间:
2014-08-01 13:02:21
阅读次数:
306
这里使用apache的poi进行读取excel
1,新建javaproject 项目:TestExcel
2,导入包
包下载地址:http://poi.apache.org/download.html#POI-3.10-FINAL
百度网盘下载:http://pan.baidu.com/s/1i365mQT
导入根目录下、lib、ooxml-lib下的所有jar
4,操作读取exc...
分类:
编程语言 时间:
2014-08-01 09:18:51
阅读次数:
323