How to get Boolean value from Object

后端 未结 4 719
盖世英雄少女心
盖世英雄少女心 2021-01-12 17:42

I tried different ways to fix this, but I am not able to fix it. I am trying to get the Boolean value of an Object passed inside this method of a checkBox:<

4条回答
  •  无人及你
    2021-01-12 18:25

    Instead of casting it, you can do something like

     Boolean.parseBoolean(string);
    

提交回复
热议问题