1. 程式人生 > >java的object型別轉換成數字型

java的object型別轉換成數字型

程式碼如下

	Object isLifeInOtherCountry=  info.get("is_life_in_other_country");
  	if(isLifeInOtherCountry != null){
            Integer ioc=Integer.valueOf(isLifeInOtherCountry.toString());
            }