java - convert int to string in android? -


i want store 1 110 in string array variable, when tried getting null pointer exception.

string age[]; for(int i=0;i<=101;i++){   age[i]=integer.tostring(i); } 

you'll need initialize string-array first:

string[] age = new string[110]; 

Comments

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -