java
文章平均质量分 63
github_17844375
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Collections.emptyList()引发的java.lang.UnsupportedOperationException
缘由:private static List getEmptyList() {return Collections.emptyList();}public static void main(String[] args) {try {List list1 = new ArrayListList list2 = getEmptyList();list2.addAll原创 2014-07-18 13:51:32 · 4607 阅读 · 0 评论 -
JSONObject解析引发java.lang.OutOfMemoryError问题
先看代码原创 2014-07-28 20:20:39 · 4015 阅读 · 0 评论 -
Java中的指针
Suggestion:private static void test(final Stringbuilder sb原创 2014-07-28 21:34:41 · 702 阅读 · 0 评论 -
File的getPath(),getAbsolutePath(),getCanonicalPath()区别
File file = new File("..//http_util.py");System.out.println(file.getPath()); // 定义时的路径, 处理 //System.out.println(file.getAbsolutePath()); // 不处理 . .. 但处理 //System.out.println(file.getCanonicalPath()原创 2014-08-08 17:11:26 · 566 阅读 · 0 评论 -
ArrayList VS LinkedList
private static void testReadList(List list) { for (Iterator iterator = list.iterator(); iterator.hasNext();) { int num = iterator.next(); } } private static void testSetList(List list) {原创 2014-08-13 19:03:10 · 436 阅读 · 0 评论 -
android.database.sqlite.SQLiteDiskIOException: disk I/O error: COMMIT
The documentation of that exception says:/** * An exception that indicates that an IO error occured while accessing the * SQLite database file. */Which might be an indication for the fo原创 2014-09-23 11:52:55 · 4220 阅读 · 1 评论 -
通过命令行创建Android项目
-n 项目名称-t Android平台-p 保存路径-k 包名-a原创 2014-10-11 13:43:15 · 535 阅读 · 0 评论
分享