![](https://lstatic.shangxueba.com/jiandati/pc/images/pc_jdt_tittleico.png)
public class BMI { public String toString(double weight, double height){ double b = weight
public class BMI { public String toString(double weight, double height){ double b = weight/(height*height); if(b < 20) return "偏瘦"; else if(b < 25) return "正常"; else if(b < 30) return "偏胖"; else if(b < 35) return "肥胖"; else if(b < 40) return "重度肥胖"; else return "极度肥胖"; } } 输入55.0,1.75,返回结果是()。
![](https://lstatic.shangxueba.com/jiandati/pc/images/jdt_panel_vip.png)
![](https://lstatic.shangxueba.com/jiandati/pc/images/no_answer.png)