1、递归获取目录下的所有文件清单调用:List fileList = GetFileList(path);方法private static List GetFileList(string path) { List fileList = new List(); ...
publicstaticvoidmain(String[]args)throwsException{Stringresult=JOptionPane.showInputDialog("请输入用户名和密码,以‘,‘隔开!");StringTokenizerst=newStringTokenizer(result,",");Stringuser=st.nextToken();Stringpwd=st.nextToken();System.out.println(user);System...
分类:
其他好文 时间:
2015-04-21 18:39:22
阅读次数:
162
charcharAt(intindex)返回指定索引处的char值。intcodePointAt(intindex)返回指定索引处的字符(Unicode代码点)。intcodePointBefore(intindex)返回指定索引之前的字符(Unicode代码点)。intcodePointCount(intbeginIndex,intendIndex)返回此String的指定文本范围中的Unicode..
分类:
编程语言 时间:
2015-04-21 18:30:24
阅读次数:
119
1.查询后获取对应的数据集后,传递参数strcodeName,根据数据集中strcodeName的匹配对应字段,获取数据集中对应的目的字段
private string GetStrName(DataTable dtable, string strcodeName)
{
string Name = strcodeName;
D...
分类:
其他好文 时间:
2015-04-21 18:11:20
阅读次数:
114
Chronometer 计时器
它提供了一个android:format属性,用于指定计时器的计时格式
setBase (long base):设置起始时间
setFormat (String format):设置显示时间的格式
start():开始计时
stop ():停止计时
setOnchronometerTickListener():为计时器绑定时间监听器...
分类:
移动开发 时间:
2015-04-21 18:08:40
阅读次数:
183
Compare Version NumbersTotal Accepted:19548Total Submissions:130867My SubmissionsQuestionSolutionCompare two version numbersversion1andversion2.Ifvers...
分类:
其他好文 时间:
2015-04-21 17:44:50
阅读次数:
147
string xxx = ".......";string pat = "{\"userid\":[^}.]*?}"; //校验段 MatchCollection mc = new Regex (pat, RegexOptions.Multiline).Matches (xxx); //去除...
考察优先队列,以及对队列的一系列操作
#include
#include
#define maxn 10000+10
using namespace std;
struct stu
{
string name;
int rp;
friend bool operator<(stu x,stu y)
{
if(x.rp==y.rp) return x.name<y.name;
ret...
分类:
其他好文 时间:
2015-04-21 16:09:20
阅读次数:
154
一.序列化:
把对象写到流里面的过程是序列化,而把对象从流中读出来的过程叫做反序列化。在java中实现深克隆对象,常常可以先使对象实现Serializable接口,然后把对象写到一个流里面,然后再从流中读取出来,便可以重建对象。
二.序列化实现:
public class Main
{
public static void main(String[] args) throws Exc...
分类:
编程语言 时间:
2015-04-21 16:08:48
阅读次数:
182