2.2.18.Create a boolean variable from stringPrevious/Next
public class Main { public static void main(String[] args) {
// Parsing string "true" will result boolean true boolean boolA = Boolean.parseBoolean("true");
System.out.println("boolA = " + boolA);