1 엑티비티에서 숫자 계산 값을 B엑티비티로 넘기려는데

 

잘 안되네요..

 

 

1번 엑티비티

 

EditText height=(EditText)findViewById(R.id.edit_height);
   EditText weight=(EditText)findViewById(R.id.edit_weight);
   
   String h=height.getText().toString();
   String w=weight.getText().toString();
   
   double a=Integer.parseInt(h);
   double b=Integer.parseInt(w);
   
   double result=b/(a*a/10000);
   
   if(result<18.5){
    Intent it=new Intent(this,blueActivity.class);
    
    it.putExtra("r1", result);
    
    startActivity(it);
    finish();

 

2번 엑티비티

 

  Intent it=getIntent();
       
        String it_r1=it.getStringExtra("r1");
       
        double bmi=Integer.parseInt(it_r1);
        TextView result=(TextView)findViewById(R.id.text_blue);
        result.setText(bmi);

 

 

밑줄부분에서 오류가 나는데 해결법 좀,,