-2

I have a class with some integer member, and after i get that value, I have to place it in TextView, but for that to be possible I need to convert it to string, so how do I do that?

Class class{

private int a;

    public int getA(){
       return a;
    }

};  
    class obj;
  String strA=obj.getA();
Overv
  • 8,433
  • 2
  • 40
  • 70
bliny
  • 67
  • 6

1 Answers1

2

Like this:

String.valueOf(intValue);

or

new Integer(intValue).toString();
Alécio Carvalho
  • 13,481
  • 5
  • 68
  • 74