Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
Java
»
Java: Work with simple types
»
Java: Work with bool (Boolean)
Conversion bool from a string in Java
Submitted by
obraztsov
on Thu, 11/24/2016 - 17:18
Forums:
Java: Work with bool (Boolean)
String
str
=
"true"
;
boolean
boolValue
= Boolean.
valueOf
(
str
);
//boolValue is true
Log in
to post comments