Last active
March 2, 2016 00:51
-
-
Save fnk0/3ddded35ee60f0eaef06 to your computer and use it in GitHub Desktop.
animals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void initRandomAnimals(int size) { | |
| mAnimalList = new ArrayList<>(); | |
| for(int i = 0; i < size; i++) { | |
| Animal a = new Animal( | |
| animalNames[i % animalNames.length], | |
| animalImages[i % animalImages.length]); | |
| mAnimalList.add(a); | |
| } | |
| } | |
| String[] animalNames = { | |
| "Gandalf", "Galadriel", "Leia", "Luke", "Hodwig", | |
| "Batman", "Penelope", "Luke", "Superman", "Iron Man", | |
| "Captain America", "Fido", "Obi Wan" | |
| }; | |
| String[] animalImages = { | |
| "https://upload.wikimedia.org/wikipedia/commons/1/1e/Large_Siamese_cat_tosses_a_mouse.jpg", | |
| "http://exmoorpet.com/wp-content/uploads/2012/08/cat.png", | |
| "https://i.ytimg.com/vi/tntOCGkgt98/maxresdefault.jpg", | |
| "http://sites.psu.edu/siowfa15/wp-content/uploads/sites/29639/2015/10/cat.jpg", | |
| "http://purrfectcatnames.com/wp-content/uploads/2013/11/Gray-Cat-MorgueFile-Nov16th-2013.jpg", | |
| "http://rufflifechicago.com/wp-content/uploads/cat-treats.jpg", | |
| "http://3.bp.blogspot.com/_jxQyBncYPVE/TUFd8rPodoI/AAAAAAAAHuM/1NnmDWI_Poc/s1600/corgilobster.jpg", | |
| "http://corgiguide.com/wp-content/uploads/2014/07/Corgi-Husky-Mix-18-e1406714443519.jpg", | |
| "https://metrouk2.files.wordpress.com/2015/08/twitter2.jpg?w=748&h=489&crop=1", | |
| "http://i.kinja-img.com/gawker-media/image/upload/kwzlpzbtii6czvn3gysi.jpg", | |
| "https://bassetthounds.files.wordpress.com/2011/02/150x150-3-3-8-33876-basset-hound.jpg", | |
| "http://www.celebritydachshund.com/wp-content/uploads/2013/02/dachshund-in-sand.jpg", | |
| "http://slappedham.com/wp-content/uploads/2014/06/Cute-White-Dog.jpg", | |
| "http://www.golden-retriever.com/wp-content/uploads/2015/06/cute-golden-retriever-happy-puppies.jpg" | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment