public static List setDataSec(List instno) { List result = new ArrayList(); String[] mon ={"2014-01","2014-02","2014-03","2014-04"}; int[] flag ={1...
分类:
编程语言 时间:
2015-01-01 22:22:40
阅读次数:
273
从一个Activity中要通过intent调出另一个Activity的话,需要使用 FLAG_ACTIVITY_NEW_TASK否则的话,会有force close:03-01 18:49:37.888 E/AndroidRuntime( 2706): FATAL EXCEPTION: main03...
分类:
其他好文 时间:
2015-01-01 18:30:50
阅读次数:
294
//session操作类
public?class?SessionMap?{
?
?????private?static?Map<String,HttpSession>?sesMap?=?new?HashMap<String,HttpSession>();
?
?????private?static?final?Object?flag?...
分类:
Web程序 时间:
2014-12-31 16:35:15
阅读次数:
267
create procedure sp_AddUser1@Name nvarchar(200), @Remark nvarchar(200),@Flag int as begin declare @id int insert into User(Name,Rem...
分类:
其他好文 时间:
2014-12-30 18:32:22
阅读次数:
163
1 module(..., package.seeall) 2 3 local g_Debug_Flag = true 4 5 function log(msg) 6 if g_Debug_Flag == false then 7 return 8 end 9 ...
分类:
其他好文 时间:
2014-12-30 18:30:11
阅读次数:
186
分类:2008-06-04 12:47467人阅读评论(0)收藏举报linuxjava测试昨天,有同事A对同事B写的程序进行测试时,出现错误,看控制台信息,发现抛出了空指针异常。调查结果显示:当flag在配置文件中没有对应属性项时,这种隐患写法flag.equals("true")会抛出空指针错误。...
分类:
其他好文 时间:
2014-12-30 16:49:51
阅读次数:
302
Intent.setFlags()函数用法:Intent的常用Flag参数:FLAG_ACTIVITY_CLEAR_TOP:例如现在的栈情况为:A B C D 。D此时通过intent跳转到B,如果这个intent添加FLAG_ACTIVITY_CLEAR_TOP标记,则栈情况变为:A B。如果没有...
分类:
移动开发 时间:
2014-12-30 14:53:21
阅读次数:
202
判断输入的字符串是不是回文字符串,正反读一样。
#include
using namespace std;
int ishuiwen(char *p)
{
int len=strlen(p);
int flag=1;
for(int i=0;i<len/2;++i) ...
分类:
其他好文 时间:
2014-12-30 11:47:34
阅读次数:
127
在接收消息广播的onReceive里,跳转到你要显示的界面。如:Intentintent=newIntent(arg0,MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
arg0.startActivity(intent);在该activity的onCreate()方法里:super.onCreate(savedInstanceState);
getWindow(..
分类:
移动开发 时间:
2014-12-29 15:33:37
阅读次数:
162
干货 处理onDraw()方法不被执行的解决方法:setWillNotDraw(false);官方文档的解释:If this view doesn't do any drawing on its own, set this flag to allow further optimizations. B...
分类:
移动开发 时间:
2014-12-28 15:28:11
阅读次数:
191