public class Test { public static void main (String args[]){ System.getProperties().put("boolean","true"); boolean bl=Boolean.getBoolean("boolean"); System.out.println("return is "+bl); } } return is true 这句话的意思:如果在System的Property里面有以argument命名的元素(即boolean),并且他的值是一个等于"true"的字符串,才会返回true
hashcode的解释java编程思想里有
public static void main (String args[]){
System.getProperties().put("boolean","true");
boolean bl=Boolean.getBoolean("boolean");
System.out.println("return is "+bl);
}
}
return is true
这句话的意思:如果在System的Property里面有以argument命名的元素(即boolean),并且他的值是一个等于"true"的字符串,才会返回true