{"action":"created","comment":{"url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/comments/23005794","id":23005794,"diff_hunk":"@@ -0,0 +1,26 @@\n+package point2;\n+\n+import java.util.ArrayList;\n+\n+\n+public class Demo {\n+\n+\tpublic static void main(String[] args) {\n+\t\t\n+\t\tArrayList<Room> aux= new ArrayList<Room>();","path":"Topic 0/src/point2/Demo.java","position":10,"original_position":10,"commit_id":"ba9c650d4e6b107deea89cd27ceafb804cac8b70","original_commit_id":"ba9c650d4e6b107deea89cd27ceafb804cac8b70","user":{"login":"lucianazavaleta","id":1538800,"avatar_url":"https://avatars.githubusercontent.com/u/1538800?v=3","gravatar_id":"","url":"https://api.github.com/users/lucianazavaleta","html_url":"https://github.com/lucianazavaleta","followers_url":"https://api.github.com/users/lucianazavaleta/followers","following_url":"https://api.github.com/users/lucianazavaleta/following{/other_user}","gists_url":"https://api.github.com/users/lucianazavaleta/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianazavaleta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianazavaleta/subscriptions","organizations_url":"https://api.github.com/users/lucianazavaleta/orgs","repos_url":"https://api.github.com/users/lucianazavaleta/repos","events_url":"https://api.github.com/users/lucianazavaleta/events{/privacy}","received_events_url":"https://api.github.com/users/lucianazavaleta/received_events","type":"User","site_admin":false},"body":"[Medium] When you declare a variable, it is better to refer Interfaces or general classes when that it's possible. In this case for example,\r\n\r\n```java\r\n   List<Room> rooms = new ArrayList<Room>();\r\n```\r\n\r\nThis will allow you to change the list structure if you needed, without any other changes in our code.","created_at":"2015-01-15T12:13:42Z","updated_at":"2015-01-15T12:13:42Z","html_url":"https://github.com/delmoralcristian/java-bootcamp/pull/1#discussion_r23005794","pull_request_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/comments/23005794"},"html":{"href":"https://github.com/delmoralcristian/java-bootcamp/pull/1#discussion_r23005794"},"pull_request":{"href":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/1","id":27292513,"html_url":"https://github.com/delmoralcristian/java-bootcamp/pull/1","diff_url":"https://github.com/delmoralcristian/java-bootcamp/pull/1.diff","patch_url":"https://github.com/delmoralcristian/java-bootcamp/pull/1.patch","issue_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues/1","number":1,"state":"open","locked":false,"title":"Cris","user":{"login":"delmoralcristian","id":10468045,"avatar_url":"https://avatars.githubusercontent.com/u/10468045?v=3","gravatar_id":"","url":"https://api.github.com/users/delmoralcristian","html_url":"https://github.com/delmoralcristian","followers_url":"https://api.github.com/users/delmoralcristian/followers","following_url":"https://api.github.com/users/delmoralcristian/following{/other_user}","gists_url":"https://api.github.com/users/delmoralcristian/gists{/gist_id}","starred_url":"https://api.github.com/users/delmoralcristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delmoralcristian/subscriptions","organizations_url":"https://api.github.com/users/delmoralcristian/orgs","repos_url":"https://api.github.com/users/delmoralcristian/repos","events_url":"https://api.github.com/users/delmoralcristian/events{/privacy}","received_events_url":"https://api.github.com/users/delmoralcristian/received_events","type":"User","site_admin":false},"body":"Classes Home and Hospital has been added to the proyect\r\n","created_at":"2015-01-13T18:22:32Z","updated_at":"2015-01-15T12:13:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffcbfa357c927fde419eb4dd7182fcf21748b097","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/1/commits","review_comments_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/1/comments","review_comment_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/comments/{number}","comments_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues/1/comments","statuses_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/statuses/ba9c650d4e6b107deea89cd27ceafb804cac8b70","head":{"label":"delmoralcristian:cris","ref":"cris","sha":"ba9c650d4e6b107deea89cd27ceafb804cac8b70","user":{"login":"delmoralcristian","id":10468045,"avatar_url":"https://avatars.githubusercontent.com/u/10468045?v=3","gravatar_id":"","url":"https://api.github.com/users/delmoralcristian","html_url":"https://github.com/delmoralcristian","followers_url":"https://api.github.com/users/delmoralcristian/followers","following_url":"https://api.github.com/users/delmoralcristian/following{/other_user}","gists_url":"https://api.github.com/users/delmoralcristian/gists{/gist_id}","starred_url":"https://api.github.com/users/delmoralcristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delmoralcristian/subscriptions","organizations_url":"https://api.github.com/users/delmoralcristian/orgs","repos_url":"https://api.github.com/users/delmoralcristian/repos","events_url":"https://api.github.com/users/delmoralcristian/events{/privacy}","received_events_url":"https://api.github.com/users/delmoralcristian/received_events","type":"User","site_admin":false},"repo":{"id":29075081,"name":"java-bootcamp","full_name":"delmoralcristian/java-bootcamp","owner":{"login":"delmoralcristian","id":10468045,"avatar_url":"https://avatars.githubusercontent.com/u/10468045?v=3","gravatar_id":"","url":"https://api.github.com/users/delmoralcristian","html_url":"https://github.com/delmoralcristian","followers_url":"https://api.github.com/users/delmoralcristian/followers","following_url":"https://api.github.com/users/delmoralcristian/following{/other_user}","gists_url":"https://api.github.com/users/delmoralcristian/gists{/gist_id}","starred_url":"https://api.github.com/users/delmoralcristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delmoralcristian/subscriptions","organizations_url":"https://api.github.com/users/delmoralcristian/orgs","repos_url":"https://api.github.com/users/delmoralcristian/repos","events_url":"https://api.github.com/users/delmoralcristian/events{/privacy}","received_events_url":"https://api.github.com/users/delmoralcristian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/delmoralcristian/java-bootcamp","description":"Java Bootcamp","fork":true,"url":"https://api.github.com/repos/delmoralcristian/java-bootcamp","forks_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/forks","keys_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/teams","hooks_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/hooks","issue_events_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues/events{/number}","events_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/events","assignees_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/assignees{/user}","branches_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/branches{/branch}","tags_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/tags","blobs_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/refs{/sha}","trees_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/statuses/{sha}","languages_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/languages","stargazers_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/stargazers","contributors_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/contributors","subscribers_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/subscribers","subscription_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/subscription","commits_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/commits{/sha}","git_commits_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/commits{/sha}","comments_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/comments{/number}","issue_comment_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues/comments/{number}","contents_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/contents/{+path}","compare_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/merges","archive_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/downloads","issues_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues{/number}","pulls_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls{/number}","milestones_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/milestones{/number}","notifications_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/labels{/name}","releases_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/releases{/id}","created_at":"2015-01-10T23:36:01Z","updated_at":"2015-01-13T18:12:09Z","pushed_at":"2015-01-15T04:23:52Z","git_url":"git://github.com/delmoralcristian/java-bootcamp.git","ssh_url":"git@github.com:delmoralcristian/java-bootcamp.git","clone_url":"https://github.com/delmoralcristian/java-bootcamp.git","svn_url":"https://github.com/delmoralcristian/java-bootcamp","homepage":null,"size":8089,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"delmoralcristian:master","ref":"master","sha":"1ec3d1c7c7167571fce4b4647440b01e4e785f3b","user":{"login":"delmoralcristian","id":10468045,"avatar_url":"https://avatars.githubusercontent.com/u/10468045?v=3","gravatar_id":"","url":"https://api.github.com/users/delmoralcristian","html_url":"https://github.com/delmoralcristian","followers_url":"https://api.github.com/users/delmoralcristian/followers","following_url":"https://api.github.com/users/delmoralcristian/following{/other_user}","gists_url":"https://api.github.com/users/delmoralcristian/gists{/gist_id}","starred_url":"https://api.github.com/users/delmoralcristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delmoralcristian/subscriptions","organizations_url":"https://api.github.com/users/delmoralcristian/orgs","repos_url":"https://api.github.com/users/delmoralcristian/repos","events_url":"https://api.github.com/users/delmoralcristian/events{/privacy}","received_events_url":"https://api.github.com/users/delmoralcristian/received_events","type":"User","site_admin":false},"repo":{"id":29075081,"name":"java-bootcamp","full_name":"delmoralcristian/java-bootcamp","owner":{"login":"delmoralcristian","id":10468045,"avatar_url":"https://avatars.githubusercontent.com/u/10468045?v=3","gravatar_id":"","url":"https://api.github.com/users/delmoralcristian","html_url":"https://github.com/delmoralcristian","followers_url":"https://api.github.com/users/delmoralcristian/followers","following_url":"https://api.github.com/users/delmoralcristian/following{/other_user}","gists_url":"https://api.github.com/users/delmoralcristian/gists{/gist_id}","starred_url":"https://api.github.com/users/delmoralcristian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delmoralcristian/subscriptions","organizations_url":"https://api.github.com/users/delmoralcristian/orgs","repos_url":"https://api.github.com/users/delmoralcristian/repos","events_url":"https://api.github.com/users/delmoralcristian/events{/privacy}","received_events_url":"https://api.github.com/users/delmoralcristian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/delmoralcristian/java-bootcamp","description":"Java Bootcamp","fork":true,"url":"https://api.github.com/repos/delmoralcristian/java-bootcamp","forks_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/forks","keys_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/teams","hooks_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/hooks","issue_events_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues/events{/number}","events_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/events","assignees_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/assignees{/user}","branches_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/branches{/branch}","tags_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/tags","blobs_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/refs{/sha}","trees_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/statuses/{sha}","languages_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/languages","stargazers_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/stargazers","contributors_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/contributors","subscribers_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/subscribers","subscription_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/subscription","commits_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/commits{/sha}","git_commits_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/git/commits{/sha}","comments_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/comments{/number}","issue_comment_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues/comments/{number}","contents_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/contents/{+path}","compare_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/merges","archive_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/downloads","issues_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues{/number}","pulls_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls{/number}","milestones_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/milestones{/number}","notifications_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/labels{/name}","releases_url":"https://api.github.com/repos/delmoralcristian/java-bootcamp/releases{/id}","created_at":"2015-01-10T23:36:01Z","updated_at":"2015-01-13T18:12:09Z","pushed_at":"2015-01-15T04:23:52Z","git_url":"git://github.com/delmoralcristian/java-bootcamp.git","ssh_url":"git@github.com:delmoralcristian/java-bootcamp.git","clone_url":"https://github.com/delmoralcristian/java-bootcamp.git","svn_url":"https://github.com/delmoralcristian/java-bootcamp","homepage":null,"size":8089,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/1"},"html":{"href":"https://github.com/delmoralcristian/java-bootcamp/pull/1"},"issue":{"href":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues/1"},"comments":{"href":"https://api.github.com/repos/delmoralcristian/java-bootcamp/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/delmoralcristian/java-bootcamp/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/delmoralcristian/java-bootcamp/statuses/ba9c650d4e6b107deea89cd27ceafb804cac8b70"}}}}