内容:序列化多个对象,利用一个容器存储你要序列化的多个对象。
class Student implements java.io.Serializable{
private String name;
public Student(String name) {
this.name = name;
}
public String getName() {
return na...
分类:
其他好文 时间:
2015-05-15 15:31:17
阅读次数:
119
Browser配置默认书签——string.xml中下添加书签item. 百度 http://m.baidu.com/?from=1000235a 新浪 http://3g.sina.cn 腾讯网 http...
分类:
其他好文 时间:
2015-05-15 15:22:29
阅读次数:
166
试题请參见:https://oj.leetcode.com/problems/longest-common-prefix/题目概述Write a function to find the longest common prefix string amongst an array of strings...
分类:
其他好文 时间:
2015-05-15 15:13:04
阅读次数:
104
从客户端(txt="节点下增加:web.config: Controller: [HttpPost] [ValidateInput(false)] public string CheckTxt() { } 解...
分类:
其他好文 时间:
2015-05-15 15:07:18
阅读次数:
101
#include "stdafx.h"#include "string.h"struct student{ int num; char name[20]; char sex;};struct student *fun(struct student stu){ struct student *p; s...
分类:
其他好文 时间:
2015-05-15 15:06:53
阅读次数:
98
1. 常见的 getSharedPreferences(String filename,mode) 指定sp文件的名称,生成的文件名为 filename.xml2.getPreferences(mode)getPreferences只有一个参数,不能指定文件名,文件名固定为 当前Activity的名...
分类:
移动开发 时间:
2015-05-15 15:03:28
阅读次数:
229
同一表格下的三级联动: 代码:class DBconnection { public const string CONNECTIONSTRING = "server=.;database=mydb;uid=sa;pwd=5587725"; }class chinastates { public st...
闲的蛋疼,自己弄了个单用户登录,第二次登录可以把第一次登录的用户挤下去... 先上login的代码: //...登录验证成功后...
//这里获得uuid
String?uuid?=?super.getUUID();
//保存登录用户的数据
LoginUser?log...
分类:
其他好文 时间:
2015-05-15 13:50:17
阅读次数:
196
/**
* 删除带内容的目录
*
windows删除原理:必须从最里面往外删除
*
需要深度遍历
*/
package cn.test.filedemo;
import java.io.File;
public class DeleteFileDemo {
public static void main(String[] args) {
Fil...
分类:
编程语言 时间:
2015-05-15 13:46:10
阅读次数:
164
#两个高精度数比较#intbccomp(string$left_operand,string$right_operand[,int$scale])#$left=$right返回0#$left$right返回1#$scale小数点位数#两个高精度数相加#stringbcadd(string$left_...
分类:
Web程序 时间:
2015-05-15 13:39:00
阅读次数:
132