How do I change a String object to a Boolean object?

Asked 2 years ago, Updated 2 years ago, 83 views

How do I change a String object to a Boolean object

string boolean java

2022-09-21 17:07

1 Answers

Boolean boolean1 = Boolean.valueOf("true");
boolean boolean2 = Boolean.parseBoolean("true");

Do it like this.


2022-09-21 17:07

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.