How to convert int to String Android Java

How to set int to Textview in Android Java

You can’t directly set an int value to a string for textview or other. for example, see this

int size = 100;


The above code will not work, this will give compile error or crash


But the following code will work, because we are converting the int  to string

int size = 100;


, ,

Post navigation


This site uses Akismet to reduce spam. Learn how your comment data is processed.