Skip to content

14. BooleanUtil

晓寻遥 edited this page Nov 6, 2021 · 1 revision

Introduce

boolean tool class.

Method

toBoolean

Introduce

convert string to boolean value.

Example

public void toBoolean(){
		// true
		boolean a = BooleanUtil.toBoolean("true");
		//true
		boolean b = BooleanUtil.toBoolean("1");
}

More

to learn more, refer to the API documentation

Clone this wiki locally