Problems converting Integer to String

前端 未结 4 1762
Happy的楠姐
Happy的楠姐 2021-01-14 14:18

I am trying to add two numbers together from EditText fields. So far I have the code below that I believe converts the EditText field \'pos1_deg\' & \'pos2_deg\' into in

4条回答
  •  攒了一身酷
    2021-01-14 14:43

    1. You can try to do String.valueOf(deg_sum)

    2. You can make your degSum not int, but Integer, so the toString method will be available.

提交回复
热议问题