{"action":"created","comment":{"url":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/comments/35038202","id":35038202,"diff_hunk":"@@ -0,0 +1,138 @@\n+package part1.task1to4.stacklist;\n+\n+import java.util.Arrays;\n+import java.util.Random;\n+\n+/**\n+ * Class StackListArray contains an array of strings. It has methods that are\n+ * made to use array as stack...push, pop, peek, isEmpty...\n+ * \n+ * @author Adnan.Lapendic\n+ *\n+ */\n+public class StackListArray {\n+\tprivate String[] array;\n+\n+\t/**\n+\t * Constructor\n+\t */\n+\tpublic StackListArray() {\n+\t\tthis.array = new String[0];","path":"ba.bitcamp.homework#22/src/part1/task1to4/stacklist/StackListArray.java","position":20,"original_position":20,"commit_id":"0fdf273735abe53704d34becbe923f4203bc7b0e","original_commit_id":"0fdf273735abe53704d34becbe923f4203bc7b0e","user":{"login":"jasminb","id":3043239,"avatar_url":"https://avatars.githubusercontent.com/u/3043239?v=3","gravatar_id":"","url":"https://api.github.com/users/jasminb","html_url":"https://github.com/jasminb","followers_url":"https://api.github.com/users/jasminb/followers","following_url":"https://api.github.com/users/jasminb/following{/other_user}","gists_url":"https://api.github.com/users/jasminb/gists{/gist_id}","starred_url":"https://api.github.com/users/jasminb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasminb/subscriptions","organizations_url":"https://api.github.com/users/jasminb/orgs","repos_url":"https://api.github.com/users/jasminb/repos","events_url":"https://api.github.com/users/jasminb/events{/privacy}","received_events_url":"https://api.github.com/users/jasminb/received_events","type":"User","site_admin":false},"body":"One should assume that this structure will hold actual elements, creating empty array is not a good practice.","created_at":"2015-07-20T20:13:28Z","updated_at":"2015-07-20T20:13:28Z","html_url":"https://github.com/AdnanLapendic/homeworks/pull/8#discussion_r35038202","pull_request_url":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/comments/35038202"},"html":{"href":"https://github.com/AdnanLapendic/homeworks/pull/8#discussion_r35038202"},"pull_request":{"href":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/8","id":40215198,"html_url":"https://github.com/AdnanLapendic/homeworks/pull/8","diff_url":"https://github.com/AdnanLapendic/homeworks/pull/8.diff","patch_url":"https://github.com/AdnanLapendic/homeworks/pull/8.patch","issue_url":"https://api.github.com/repos/AdnanLapendic/homeworks/issues/8","number":8,"state":"open","locked":false,"title":"Homework#22","user":{"login":"AdnanLapendic","id":12533064,"avatar_url":"https://avatars.githubusercontent.com/u/12533064?v=3","gravatar_id":"","url":"https://api.github.com/users/AdnanLapendic","html_url":"https://github.com/AdnanLapendic","followers_url":"https://api.github.com/users/AdnanLapendic/followers","following_url":"https://api.github.com/users/AdnanLapendic/following{/other_user}","gists_url":"https://api.github.com/users/AdnanLapendic/gists{/gist_id}","starred_url":"https://api.github.com/users/AdnanLapendic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdnanLapendic/subscriptions","organizations_url":"https://api.github.com/users/AdnanLapendic/orgs","repos_url":"https://api.github.com/users/AdnanLapendic/repos","events_url":"https://api.github.com/users/AdnanLapendic/events{/privacy}","received_events_url":"https://api.github.com/users/AdnanLapendic/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-17T09:43:21Z","updated_at":"2015-07-20T20:13:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/8/commits","review_comments_url":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/8/comments","review_comment_url":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AdnanLapendic/homeworks/issues/8/comments","statuses_url":"https://api.github.com/repos/AdnanLapendic/homeworks/statuses/0fdf273735abe53704d34becbe923f4203bc7b0e","head":{"label":"AdnanLapendic:homework22","ref":"homework22","sha":"0fdf273735abe53704d34becbe923f4203bc7b0e","user":{"login":"AdnanLapendic","id":12533064,"avatar_url":"https://avatars.githubusercontent.com/u/12533064?v=3","gravatar_id":"","url":"https://api.github.com/users/AdnanLapendic","html_url":"https://github.com/AdnanLapendic","followers_url":"https://api.github.com/users/AdnanLapendic/followers","following_url":"https://api.github.com/users/AdnanLapendic/following{/other_user}","gists_url":"https://api.github.com/users/AdnanLapendic/gists{/gist_id}","starred_url":"https://api.github.com/users/AdnanLapendic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdnanLapendic/subscriptions","organizations_url":"https://api.github.com/users/AdnanLapendic/orgs","repos_url":"https://api.github.com/users/AdnanLapendic/repos","events_url":"https://api.github.com/users/AdnanLapendic/events{/privacy}","received_events_url":"https://api.github.com/users/AdnanLapendic/received_events","type":"User","site_admin":false},"repo":{"id":37675627,"name":"homeworks","full_name":"AdnanLapendic/homeworks","owner":{"login":"AdnanLapendic","id":12533064,"avatar_url":"https://avatars.githubusercontent.com/u/12533064?v=3","gravatar_id":"","url":"https://api.github.com/users/AdnanLapendic","html_url":"https://github.com/AdnanLapendic","followers_url":"https://api.github.com/users/AdnanLapendic/followers","following_url":"https://api.github.com/users/AdnanLapendic/following{/other_user}","gists_url":"https://api.github.com/users/AdnanLapendic/gists{/gist_id}","starred_url":"https://api.github.com/users/AdnanLapendic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdnanLapendic/subscriptions","organizations_url":"https://api.github.com/users/AdnanLapendic/orgs","repos_url":"https://api.github.com/users/AdnanLapendic/repos","events_url":"https://api.github.com/users/AdnanLapendic/events{/privacy}","received_events_url":"https://api.github.com/users/AdnanLapendic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AdnanLapendic/homeworks","description":"","fork":false,"url":"https://api.github.com/repos/AdnanLapendic/homeworks","forks_url":"https://api.github.com/repos/AdnanLapendic/homeworks/forks","keys_url":"https://api.github.com/repos/AdnanLapendic/homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AdnanLapendic/homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AdnanLapendic/homeworks/teams","hooks_url":"https://api.github.com/repos/AdnanLapendic/homeworks/hooks","issue_events_url":"https://api.github.com/repos/AdnanLapendic/homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/AdnanLapendic/homeworks/events","assignees_url":"https://api.github.com/repos/AdnanLapendic/homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/AdnanLapendic/homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/AdnanLapendic/homeworks/tags","blobs_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AdnanLapendic/homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/AdnanLapendic/homeworks/languages","stargazers_url":"https://api.github.com/repos/AdnanLapendic/homeworks/stargazers","contributors_url":"https://api.github.com/repos/AdnanLapendic/homeworks/contributors","subscribers_url":"https://api.github.com/repos/AdnanLapendic/homeworks/subscribers","subscription_url":"https://api.github.com/repos/AdnanLapendic/homeworks/subscription","commits_url":"https://api.github.com/repos/AdnanLapendic/homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/AdnanLapendic/homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/AdnanLapendic/homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/AdnanLapendic/homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/AdnanLapendic/homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AdnanLapendic/homeworks/merges","archive_url":"https://api.github.com/repos/AdnanLapendic/homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AdnanLapendic/homeworks/downloads","issues_url":"https://api.github.com/repos/AdnanLapendic/homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/AdnanLapendic/homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/AdnanLapendic/homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AdnanLapendic/homeworks/labels{/name}","releases_url":"https://api.github.com/repos/AdnanLapendic/homeworks/releases{/id}","created_at":"2015-06-18T17:56:48Z","updated_at":"2015-06-21T01:25:17Z","pushed_at":"2015-07-17T09:43:21Z","git_url":"git://github.com/AdnanLapendic/homeworks.git","ssh_url":"git@github.com:AdnanLapendic/homeworks.git","clone_url":"https://github.com/AdnanLapendic/homeworks.git","svn_url":"https://github.com/AdnanLapendic/homeworks","homepage":null,"size":9832,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"AdnanLapendic:master","ref":"master","sha":"251d353a7dbde4dd40bf7a245fc0d99914c8624b","user":{"login":"AdnanLapendic","id":12533064,"avatar_url":"https://avatars.githubusercontent.com/u/12533064?v=3","gravatar_id":"","url":"https://api.github.com/users/AdnanLapendic","html_url":"https://github.com/AdnanLapendic","followers_url":"https://api.github.com/users/AdnanLapendic/followers","following_url":"https://api.github.com/users/AdnanLapendic/following{/other_user}","gists_url":"https://api.github.com/users/AdnanLapendic/gists{/gist_id}","starred_url":"https://api.github.com/users/AdnanLapendic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdnanLapendic/subscriptions","organizations_url":"https://api.github.com/users/AdnanLapendic/orgs","repos_url":"https://api.github.com/users/AdnanLapendic/repos","events_url":"https://api.github.com/users/AdnanLapendic/events{/privacy}","received_events_url":"https://api.github.com/users/AdnanLapendic/received_events","type":"User","site_admin":false},"repo":{"id":37675627,"name":"homeworks","full_name":"AdnanLapendic/homeworks","owner":{"login":"AdnanLapendic","id":12533064,"avatar_url":"https://avatars.githubusercontent.com/u/12533064?v=3","gravatar_id":"","url":"https://api.github.com/users/AdnanLapendic","html_url":"https://github.com/AdnanLapendic","followers_url":"https://api.github.com/users/AdnanLapendic/followers","following_url":"https://api.github.com/users/AdnanLapendic/following{/other_user}","gists_url":"https://api.github.com/users/AdnanLapendic/gists{/gist_id}","starred_url":"https://api.github.com/users/AdnanLapendic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdnanLapendic/subscriptions","organizations_url":"https://api.github.com/users/AdnanLapendic/orgs","repos_url":"https://api.github.com/users/AdnanLapendic/repos","events_url":"https://api.github.com/users/AdnanLapendic/events{/privacy}","received_events_url":"https://api.github.com/users/AdnanLapendic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AdnanLapendic/homeworks","description":"","fork":false,"url":"https://api.github.com/repos/AdnanLapendic/homeworks","forks_url":"https://api.github.com/repos/AdnanLapendic/homeworks/forks","keys_url":"https://api.github.com/repos/AdnanLapendic/homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AdnanLapendic/homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AdnanLapendic/homeworks/teams","hooks_url":"https://api.github.com/repos/AdnanLapendic/homeworks/hooks","issue_events_url":"https://api.github.com/repos/AdnanLapendic/homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/AdnanLapendic/homeworks/events","assignees_url":"https://api.github.com/repos/AdnanLapendic/homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/AdnanLapendic/homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/AdnanLapendic/homeworks/tags","blobs_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AdnanLapendic/homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/AdnanLapendic/homeworks/languages","stargazers_url":"https://api.github.com/repos/AdnanLapendic/homeworks/stargazers","contributors_url":"https://api.github.com/repos/AdnanLapendic/homeworks/contributors","subscribers_url":"https://api.github.com/repos/AdnanLapendic/homeworks/subscribers","subscription_url":"https://api.github.com/repos/AdnanLapendic/homeworks/subscription","commits_url":"https://api.github.com/repos/AdnanLapendic/homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/AdnanLapendic/homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/AdnanLapendic/homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/AdnanLapendic/homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/AdnanLapendic/homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/AdnanLapendic/homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AdnanLapendic/homeworks/merges","archive_url":"https://api.github.com/repos/AdnanLapendic/homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AdnanLapendic/homeworks/downloads","issues_url":"https://api.github.com/repos/AdnanLapendic/homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/AdnanLapendic/homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/AdnanLapendic/homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AdnanLapendic/homeworks/labels{/name}","releases_url":"https://api.github.com/repos/AdnanLapendic/homeworks/releases{/id}","created_at":"2015-06-18T17:56:48Z","updated_at":"2015-06-21T01:25:17Z","pushed_at":"2015-07-17T09:43:21Z","git_url":"git://github.com/AdnanLapendic/homeworks.git","ssh_url":"git@github.com:AdnanLapendic/homeworks.git","clone_url":"https://github.com/AdnanLapendic/homeworks.git","svn_url":"https://github.com/AdnanLapendic/homeworks","homepage":null,"size":9832,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/8"},"html":{"href":"https://github.com/AdnanLapendic/homeworks/pull/8"},"issue":{"href":"https://api.github.com/repos/AdnanLapendic/homeworks/issues/8"},"comments":{"href":"https://api.github.com/repos/AdnanLapendic/homeworks/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AdnanLapendic/homeworks/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/AdnanLapendic/homeworks/statuses/0fdf273735abe53704d34becbe923f4203bc7b0e"}}}}