码迷,mamicode.com
首页 >  
搜索关键字:static synchronized    ( 48162个结果
Android 保存文件
背景 我们以常见的登录的时候有CheckBox来显示是否保存帐号密码的形式来生动的讲解这个故事。最后是以txt文档保存,用到的是Java的IO操作。这个只是粗略的,大家不喜勿喷。保存文件 public static void savefile2card(Context context,String ...
分类:移动开发   时间:2014-05-10 00:14:22    阅读次数:439
java获取当前时间前一个月的年月日时分秒
public static String getLastMonthTime(){ Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.MONTH, -1); int y...
分类:编程语言   时间:2014-05-10 00:03:29    阅读次数:532
CRC16 查表法
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
去除html标记和替换script标记
1: /// 2: /// 去除HTML标记 3: /// 4: /// 包括HTML的源码 5: /// 已经去除后的文字 6: public static string RemoveHTML(string Htmlstring) 7: { 8:...
分类:Web程序   时间:2014-05-09 23:51:01    阅读次数:404
Integer 内部实现
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
使用增强for循环遍历集合的时候操作集合的问题?
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
.NET(C#):获取进程的内存私有工作集
将读取的数据写到log.txt文件中,先在工程下新建一个log.txt文件public class Program { public const string LOGGER_FILE = "log.txt"; public static void Logger(st...
分类:Web程序   时间:2014-05-09 23:03:52    阅读次数:843
VS2010开发MFC ActiveX,摄像头拍照上传Webservice(2)
继续记录,第二步开发摄像头拍照功能.使用vfw.h开发摄像头拍照功能,关于vfw网上有很多文章,很多代码可以参考参考:http://blog.163.com/huangqiao_8/blog/static/33900492008017111847364/Vedio for Windows 是WIN3...
分类:Web程序   时间:2014-05-09 20:34:59    阅读次数:389
查看自己的项目有多少行?
作为一名程序员,你的代码量有多少,有空可以测测的。public class ItemCount { private static int lineCount;//表示代码行数 private static int fileCount;//表示文件个数 private static ...
分类:其他好文   时间:2014-05-09 20:28:02    阅读次数:365
用cocos2d-android开发android游戏时调用box2d中的native本地函数问题
用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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!