String str = "true"; Boolean Bl = new Boolean(str); boolean bl = Bl.booleanValue(); System.out.println(bl);