Converting an Integer into a string NOT NUMERIC

后端 未结 1 1731
Happy的楠姐
Happy的楠姐 2021-01-29 12:42

So what I\'m trying to do is convert an INTEGER type into a string from a jdbc to put in a jtextfield, unfortunately the String.OfValue cannot convert my Integer type but can fo

1条回答
  •  囚心锁ツ
    2021-01-29 13:34

    If I understand your problem correctly,

    Integer patient_id = //get value of patient_id from database
    String add1 =patient_id.toString();
    p_id.setText(add1);
    

    0 讨论(0)
提交回复
热议问题