lundi 23 février 2015

How can I use "\n" inside a String[] array at Android Studio?

I have been looking thru several workarounds but nothing seems to work properly. Assuming that I will have a huge array of String (and I want to make it simple):



String[] values = new String[] { "This is a string \n array",
"This is another \n string array"}; (...)


What's the best way to add a similar solution like



\n



inside this array?


Aucun commentaire:

Enregistrer un commentaire