{"comment":{"url":"https://api.github.com/repos/kovacsgellert/OOP-2015/comments/14234740","html_url":"https://github.com/kovacsgellert/OOP-2015/commit/614b3cd1de7bfaeacf4b0205a6fb82a7e4a35215#commitcomment-14234740","id":14234740,"user":{"login":"Alex-Cosma","id":5063160,"avatar_url":"https://avatars.githubusercontent.com/u/5063160?v=3","gravatar_id":"","url":"https://api.github.com/users/Alex-Cosma","html_url":"https://github.com/Alex-Cosma","followers_url":"https://api.github.com/users/Alex-Cosma/followers","following_url":"https://api.github.com/users/Alex-Cosma/following{/other_user}","gists_url":"https://api.github.com/users/Alex-Cosma/gists{/gist_id}","starred_url":"https://api.github.com/users/Alex-Cosma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alex-Cosma/subscriptions","organizations_url":"https://api.github.com/users/Alex-Cosma/orgs","repos_url":"https://api.github.com/users/Alex-Cosma/repos","events_url":"https://api.github.com/users/Alex-Cosma/events{/privacy}","received_events_url":"https://api.github.com/users/Alex-Cosma/received_events","type":"User","site_admin":false},"position":35,"line":35,"path":"Students/30422/Kovacs A. Gellert Pal/Zoowsome/app/src/main/java/com/gellert/zoowsome/activities/CustomListAdapter.java","commit_id":"614b3cd1de7bfaeacf4b0205a6fb82a7e4a35215","created_at":"2015-11-06T07:39:20Z","updated_at":"2015-11-06T07:39:20Z","body":"Instead of having this switch here, you could add a 'imageId' field to the `Animal` class and instantiate it differently in every sub-class constructor. this way, you'll be able to write `image.setImageResource(singleAnimal.getImageId())` :smile: "}}