提取了一些在开发过程中可能会用到的日期相关的函数作为工具类,供大家参考:
/**
* 日期操作工具类.
*
* @author shimiso
*/
public class DateUtil {
private static final String FORMAT = "yyyy-MM-dd HH:mm:ss";
public static Date str2Dat...
分类:
移动开发 时间:
2014-06-07 01:15:57
阅读次数:
289
C#如何检测一个字符串是不是合法的URLusingSystem.Text.RegularExpressions;
//////检测串值是否为合法的网址格式//////要检测的String值///成功返回true失败返回falsepublicstaticboolCheckIsUrlFormat(str...
分类:
其他好文 时间:
2014-05-31 15:05:54
阅读次数:
230
DateTime dt = DateTime.Now;//2010年10月4日 17点05分
string str = ""; //str = string.Format("{0:y yy yyy yyyy}", dt); //10 10 2010
2010 //str = String.Form....
分类:
其他好文 时间:
2014-05-31 14:36:51
阅读次数:
208
三十一、如果变量名要加注释,说明命名不是很准确。不规范示例:暂无规范实例:暂无解析:暂无三十二、任何类字段除非必要,否则都要私有化不规范示例:public
class Person{ String name; String sex; int age;}规范示例:public class C...
分类:
编程语言 时间:
2014-05-31 14:29:47
阅读次数:
312
这里是发送的代码:SendVarData是转码后发送函数 1 /// 2 /// 发送文件 3
/// 4 /// 5 private void SendFileToClient(string userName) 6 ...
分类:
其他好文 时间:
2014-05-31 14:26:40
阅读次数:
446
消通知机制:3个步骤:1.通知的发布2.通知的监听3.通知的移除需要了解的要点1.通知中心:(NSNotificationCenter)每一个应用程序都有一个通知中心(NSNotificationCenter)实例,专门负责协助不同对象之间的消息通信任何一个对象都可以向通知中心发布通知(NSNoti...
分类:
移动开发 时间:
2014-05-31 14:15:20
阅读次数:
259
C#:string 是C#的语法支持的,而String 则是string
对应的真实CLR中的类型,也就是说string 应该只是String的一个别名。string 可以在不引用 任何命令空间的情况下使用。String 必须先引用
System命名空间。当我们要用到类的方法时,就用String,如...
分类:
其他好文 时间:
2014-05-31 14:13:16
阅读次数:
172
一、什么 RedisREmoteDIctionaryServer,简称
Redis,是一个类似于Memcached的Key-Value存储系统。相比Memcached,它支持更丰富的数据结构,包括string(字符串)、list(链表)、set(集合)、zset(sorted
set --有序集合)...
分类:
Web程序 时间:
2014-05-31 01:37:58
阅读次数:
390
1、需要准备的工具,eclipse,cdt(c++)插件,cygwin(unix)和
android ndk.2、开发步骤:a.创建一个android工程b.JAVA代码中写声明 native 方法 public native String
helloFromJNI(); 通过javah 包名.类....
分类:
移动开发 时间:
2014-05-31 01:09:30
阅读次数:
337
*含义1.乘法 3*5 2.定义指针变量 int *
p;//定义了一个名字叫p的变量,能够存放int数据类型的地址3.指针运算符, //如果p是一个已经定义好的指针变量则*p表示以p的内容为地址的变量
打印数据类型%d - int%ld – long int%c - char%f ...
分类:
移动开发 时间:
2014-05-31 01:04:05
阅读次数:
346