码迷,mamicode.com
首页 >  
搜索关键字:ArrayList    ( 8156个结果
关于System.Collections空间
System.Collections命名空间包含可使用的集合类和相关的接口,提供了集合的基本功能。该命名空间下的.NET非泛型集合类如下所示:— System.Collections.ArrayList:数组集合类,使用大小可按动态增加的数组实现Ilist接口。— System.Collection...
分类:其他好文   时间:2014-08-05 22:05:52    阅读次数:301
Java生成word文档
package word; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import com.lowagie.text.Document; import com.lowagie.text.DocumentExcept...
分类:编程语言   时间:2014-08-05 19:33:10    阅读次数:248
线性表 顺序存储 链式存储 ---java实现
首先抽象出一个线性表抽象类(包含基本的增删操作) public abstract class MyAbstractList { public abstract void add(E t); public abstract void add(int index,E t); public abstract void remove(); public abstract void remove(...
分类:编程语言   时间:2014-08-05 14:13:59    阅读次数:316
android如何使用DOM来解析XML文件
对于以下的xml文件: rjzjh jjjjjj bbbb ccc 这样来解析: import java.util.ArrayList; import javax.xml.parsers.DocumentBuilder; import j...
分类:移动开发   时间:2014-08-05 00:48:08    阅读次数:275
android 开源项目(城市定位)
importjava.util.ArrayList;importorg.json.JSONArray;importorg.json.JSONException;importorg.json.JSONObject;importorg.lfg.Utils.MyVolley;importorg.lfg.Utils.StringRequestUTF;importorg.lfg.cityselect_activity.CityHomeActivity;importorg.lfg.widgets.ListViewForS..
分类:移动开发   时间:2014-08-04 11:15:59    阅读次数:377
why using List list = new ArrayList() better than Arraylist list?
This is called programming to interface. This will be helpful in case if you wish to move to some other implementation of List in the future. If you w...
分类:其他好文   时间:2014-08-04 06:13:06    阅读次数:204
爪哇国新游记之二十七----数组的二分查找
代码:import java.util.ArrayList;import java.util.List;public class Bit { int max; int min; int[] arr; public Bit(int[] arrInput) { //...
分类:其他好文   时间:2014-08-03 17:37:45    阅读次数:216
android使用apache httpclient发送post请求
package com.liuc; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.ut...
分类:移动开发   时间:2014-08-02 18:24:03    阅读次数:209
爪哇国新游记之二十五----图及其遍历查找
代码:import java.util.ArrayList;import java.util.Collections;import java.util.HashSet;import java.util.LinkedHashMap;import java.util.List;import java.u...
分类:其他好文   时间:2014-08-01 19:21:32    阅读次数:291
java传入一个字符串 将它分割成大写字符为首的字符串数组
/*      * 传入一个字符串 将它分割成大写字符为首的字符串数组      */     private ArrayList splitByUpperCase(String str) {         ArrayList rs = new ArrayList();         int index = 0;         int len = str.length();  ...
分类:编程语言   时间:2014-08-01 16:18:11    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!