摘要:
1、不要硬编string/ numeric,可以使用一些常量代替。 (提高可读性) intCount;Count=100;privatestaticconstintZERO=0;if(Count==ZERO){//执行一些操作} 2、对于字符串比较-使用String. Empty ,而不是""。 3、不要声明成员变量为public 或者proteted,尽量使用private 成员变量和pub... 阅读全文
posted @ 2010-01-23 02:02
搏击的小船
阅读(242)
评论(0)
推荐(0)