Get system property in boolean value
static boolean getBoolean(String name)
- Gets system property.
public class Main {
public static void main(String[] args) {
System.setProperty("myKey", "true");
Boolean boolean1 = Boolean.getBoolean("myKey");
System.out.println(boolean1);
}
}
The output:
true