Sunday 20 March 2011

Convert String to boolean

String strBoolean = "true";

//Do the String to boolean conversion
boolean theValue = Boolean.parseBoolean(strBoolean);

No comments:

Post a Comment