公共类Main {公共静态void main(String [] args){BmiService服务=新的BmiService(); 浮点索引= service.calculate(86.5f,1.780f); 浮点索引1 = service.calculate(90,1.70f); 浮点索引2 = service.calculate(88.2f,1.780f); 浮点索引3 = service.calculate(45.4f,1.680f); 浮点索引4 = service.calculat