背景
我们以常见的登录的时候有CheckBox来显示是否保存帐号密码的形式来生动的讲解这个故事。最后是以txt文档保存,用到的是Java的IO操作。这个只是粗略的,大家不喜勿喷。保存文件
public static void savefile2card(Context context,String ...
分类:
移动开发 时间:
2014-05-10 00:14:22
阅读次数:
439
public static String getLastMonthTime(){ Calendar
calendar = Calendar.getInstance(); calendar.add(Calendar.MONTH, -1); int y...
分类:
编程语言 时间:
2014-05-10 00:03:29
阅读次数:
532
1 static const unsigned short crc16_table[256]= 2 {
3 0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241, 4 0xC601,
0x06C...
分类:
其他好文 时间:
2014-05-10 00:02:02
阅读次数:
382
1: /// 2: /// 去除HTML标记 3: /// 4: /// 包括HTML的源码 5:
/// 已经去除后的文字 6: public static string RemoveHTML(string Htmlstring) 7: { 8:...
分类:
Web程序 时间:
2014-05-09 23:51:01
阅读次数:
404
1 public static void main(String[] args) { 2
Integer in1 = 128; 3 Integer in2 = 128; 4 System.out.println(in1 == in2 ); 5...
分类:
其他好文 时间:
2014-05-09 23:50:29
阅读次数:
270
1 // 遍历一个list 2 public static void printList(List
list){ 3 for (String string : list) { 4 list.add("eeee"); // 运行错误 5 ...
分类:
其他好文 时间:
2014-05-09 23:31:33
阅读次数:
467
public class InitServlet extends HttpServlet {
private static final long serialVersionUID = -
5826096764263027718L;
public void destroy() {
super.destroy();
}
public void init() throws Servl...
分类:
编程语言 时间:
2014-05-09 14:45:06
阅读次数:
324
用cocos2d-android开发android游戏时调用box2d中的newWorld(Vector2,boolean)时,出现如下报错:“java.lang.UnsatisfiedLinkError:Nativemethodnotfound:com.badlogic.gdx.physics.box2d.World.newWorld:(FFZ)J”解决方法:在当前类中添加代码:static{
System.loadLibrary("g..
分类:
移动开发 时间:
2014-05-09 14:28:27
阅读次数:
404
SchemaExport se=new SchemaExport(cfg).setOutputFile("xby.sql");
se.execute(true,true,false,false);
第一个true指导出sql文件,第二个true指执行数据库DDL.
public class HibernateUtils {
public static final Logger log=...
分类:
数据库 时间:
2014-05-09 14:10:56
阅读次数:
455
1.Joiner用处
Joiner用来将一系列的字符串进行合并,合并之后的每个字符串之间可以用特定的分隔符,并且可以用来处理含有null的字符串的情况。
2.Jointer的常用方法
1.public static Joiner on(String separator)或者public static Joiner on(char separator);
该方法设置合并字符串之间的分隔符。...
分类:
其他好文 时间:
2014-05-09 14:01:17
阅读次数:
338