刚接触java,碰到一个问题,如何实现数组变量的静态效果,比如第一次执行:
static boolean[] KeyList= new boolean[214];//默认赋值false
KeyList[1]=true;
第二次执行时,
KeyList[1]=?
数组变量静态效果
static boolean[] KeyList= new boolean[214];//默认赋值false
KeyList[1]=true;
第二次执行时,
KeyList[1]=?
数组变量静态效果
调试欢乐多
你想让变量一直都是false,即便变成true,也会自动回复为false么?