Skip to content

Instantly share code, notes, and snippets.

@exhesham
Created June 8, 2018 08:38
Show Gist options
  • Save exhesham/b0fef66c8a41871de242b93c309e6f9e to your computer and use it in GitHub Desktop.
Save exhesham/b0fef66c8a41871de242b93c309e6f9e to your computer and use it in GitHub Desktop.
/*
* Iterate through the array and append the Strings to the TextView. The reason why we add
* the "\n\n\n" after the String is to give visual separation between each String in the
* TextView. Later, we'll learn about a better way to display lists of data.
*/
for (String toyName : toyNames) {
mToysListTextView.append(toyName + "\n\n\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment