{"action":"created","comment":{"url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/comments/89726857","pull_request_review_id":10263492,"id":89726857,"diff_hunk":"@@ -1,8 +1,19 @@\n package school.lemon.changerequest.java.introduction.hw2;\n \n \n+import com.sun.xml.internal.fastinfoset.util.CharArray;\n+\n public class Task6 {\n     public static int[] reverse(int[] arr) {\n-        return null;\n+        if (arr == null) {\n+            return null;\n+        }\n+        int reverseArr[] = new int[arr.length];\n+        int n = 0;\n+        for (int i = arr.length - 1; i >= 0; --i) {\n+            reverseArr[i] = arr[n];\n+            n++;\n+        }","path":"src/main/java/school/lemon/changerequest/java/introduction/hw2/Task6.java","position":17,"original_position":17,"commit_id":"c70745ee268ae15cc9b112101470a8ca1e0ce52e","original_commit_id":"f18903053597d46c57b287134327d9d180be1c79","user":{"login":"xSAVIKx","id":5675689,"avatar_url":"https://avatars.githubusercontent.com/u/5675689?v=3","gravatar_id":"","url":"https://api.github.com/users/xSAVIKx","html_url":"https://github.com/xSAVIKx","followers_url":"https://api.github.com/users/xSAVIKx/followers","following_url":"https://api.github.com/users/xSAVIKx/following{/other_user}","gists_url":"https://api.github.com/users/xSAVIKx/gists{/gist_id}","starred_url":"https://api.github.com/users/xSAVIKx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xSAVIKx/subscriptions","organizations_url":"https://api.github.com/users/xSAVIKx/orgs","repos_url":"https://api.github.com/users/xSAVIKx/repos","events_url":"https://api.github.com/users/xSAVIKx/events{/privacy}","received_events_url":"https://api.github.com/users/xSAVIKx/received_events","type":"User","site_admin":false},"body":"You can create more complex `for` condition:\r\n```java\r\nfor (int i = arr.length - 1, n=0; i >= 0 && n<arr.length; i--, n++) {\r\n  reverseArr[i] = arr[n];\r\n}\r\n```\r\n\r\nBut, actually, this task could be solved with only one index variable.","created_at":"2016-11-28T07:14:05Z","updated_at":"2016-11-28T07:14:05Z","html_url":"https://github.com/ChangeRequest/introduction.hw2/pull/3#discussion_r89726857","pull_request_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/comments/89726857"},"html":{"href":"https://github.com/ChangeRequest/introduction.hw2/pull/3#discussion_r89726857"},"pull_request":{"href":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/3","id":95223670,"html_url":"https://github.com/ChangeRequest/introduction.hw2/pull/3","diff_url":"https://github.com/ChangeRequest/introduction.hw2/pull/3.diff","patch_url":"https://github.com/ChangeRequest/introduction.hw2/pull/3.patch","issue_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/issues/3","number":3,"state":"open","locked":false,"title":"ht Diana (1-7)","user":{"login":"dianasinenchenko","id":23460194,"avatar_url":"https://avatars.githubusercontent.com/u/23460194?v=3","gravatar_id":"","url":"https://api.github.com/users/dianasinenchenko","html_url":"https://github.com/dianasinenchenko","followers_url":"https://api.github.com/users/dianasinenchenko/followers","following_url":"https://api.github.com/users/dianasinenchenko/following{/other_user}","gists_url":"https://api.github.com/users/dianasinenchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dianasinenchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dianasinenchenko/subscriptions","organizations_url":"https://api.github.com/users/dianasinenchenko/orgs","repos_url":"https://api.github.com/users/dianasinenchenko/repos","events_url":"https://api.github.com/users/dianasinenchenko/events{/privacy}","received_events_url":"https://api.github.com/users/dianasinenchenko/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-24T19:58:14Z","updated_at":"2016-11-28T07:16:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"048020423a190fd91548b73eb1cc88d913e96c90","assignee":{"login":"xSAVIKx","id":5675689,"avatar_url":"https://avatars.githubusercontent.com/u/5675689?v=3","gravatar_id":"","url":"https://api.github.com/users/xSAVIKx","html_url":"https://github.com/xSAVIKx","followers_url":"https://api.github.com/users/xSAVIKx/followers","following_url":"https://api.github.com/users/xSAVIKx/following{/other_user}","gists_url":"https://api.github.com/users/xSAVIKx/gists{/gist_id}","starred_url":"https://api.github.com/users/xSAVIKx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xSAVIKx/subscriptions","organizations_url":"https://api.github.com/users/xSAVIKx/orgs","repos_url":"https://api.github.com/users/xSAVIKx/repos","events_url":"https://api.github.com/users/xSAVIKx/events{/privacy}","received_events_url":"https://api.github.com/users/xSAVIKx/received_events","type":"User","site_admin":false},"assignees":[{"login":"xSAVIKx","id":5675689,"avatar_url":"https://avatars.githubusercontent.com/u/5675689?v=3","gravatar_id":"","url":"https://api.github.com/users/xSAVIKx","html_url":"https://github.com/xSAVIKx","followers_url":"https://api.github.com/users/xSAVIKx/followers","following_url":"https://api.github.com/users/xSAVIKx/following{/other_user}","gists_url":"https://api.github.com/users/xSAVIKx/gists{/gist_id}","starred_url":"https://api.github.com/users/xSAVIKx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xSAVIKx/subscriptions","organizations_url":"https://api.github.com/users/xSAVIKx/orgs","repos_url":"https://api.github.com/users/xSAVIKx/repos","events_url":"https://api.github.com/users/xSAVIKx/events{/privacy}","received_events_url":"https://api.github.com/users/xSAVIKx/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/issues/3/comments","statuses_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/statuses/c70745ee268ae15cc9b112101470a8ca1e0ce52e","head":{"label":"dianasinenchenko:master","ref":"master","sha":"c70745ee268ae15cc9b112101470a8ca1e0ce52e","user":{"login":"dianasinenchenko","id":23460194,"avatar_url":"https://avatars.githubusercontent.com/u/23460194?v=3","gravatar_id":"","url":"https://api.github.com/users/dianasinenchenko","html_url":"https://github.com/dianasinenchenko","followers_url":"https://api.github.com/users/dianasinenchenko/followers","following_url":"https://api.github.com/users/dianasinenchenko/following{/other_user}","gists_url":"https://api.github.com/users/dianasinenchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dianasinenchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dianasinenchenko/subscriptions","organizations_url":"https://api.github.com/users/dianasinenchenko/orgs","repos_url":"https://api.github.com/users/dianasinenchenko/repos","events_url":"https://api.github.com/users/dianasinenchenko/events{/privacy}","received_events_url":"https://api.github.com/users/dianasinenchenko/received_events","type":"User","site_admin":false},"repo":{"id":74596512,"name":"introduction.hw2","full_name":"dianasinenchenko/introduction.hw2","owner":{"login":"dianasinenchenko","id":23460194,"avatar_url":"https://avatars.githubusercontent.com/u/23460194?v=3","gravatar_id":"","url":"https://api.github.com/users/dianasinenchenko","html_url":"https://github.com/dianasinenchenko","followers_url":"https://api.github.com/users/dianasinenchenko/followers","following_url":"https://api.github.com/users/dianasinenchenko/following{/other_user}","gists_url":"https://api.github.com/users/dianasinenchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dianasinenchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dianasinenchenko/subscriptions","organizations_url":"https://api.github.com/users/dianasinenchenko/orgs","repos_url":"https://api.github.com/users/dianasinenchenko/repos","events_url":"https://api.github.com/users/dianasinenchenko/events{/privacy}","received_events_url":"https://api.github.com/users/dianasinenchenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dianasinenchenko/introduction.hw2","description":"Introduction. Home Work 2","fork":true,"url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2","forks_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/forks","keys_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/teams","hooks_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/hooks","issue_events_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/issues/events{/number}","events_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/events","assignees_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/assignees{/user}","branches_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/branches{/branch}","tags_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/tags","blobs_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/git/refs{/sha}","trees_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/statuses/{sha}","languages_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/languages","stargazers_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/stargazers","contributors_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/contributors","subscribers_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/subscribers","subscription_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/subscription","commits_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/commits{/sha}","git_commits_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/git/commits{/sha}","comments_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/comments{/number}","issue_comment_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/issues/comments{/number}","contents_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/contents/{+path}","compare_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/merges","archive_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/downloads","issues_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/issues{/number}","pulls_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/pulls{/number}","milestones_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/milestones{/number}","notifications_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/labels{/name}","releases_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/releases{/id}","deployments_url":"https://api.github.com/repos/dianasinenchenko/introduction.hw2/deployments","created_at":"2016-11-23T16:50:53Z","updated_at":"2016-11-23T16:50:54Z","pushed_at":"2016-11-27T22:22:19Z","git_url":"git://github.com/dianasinenchenko/introduction.hw2.git","ssh_url":"git@github.com:dianasinenchenko/introduction.hw2.git","clone_url":"https://github.com/dianasinenchenko/introduction.hw2.git","svn_url":"https://github.com/dianasinenchenko/introduction.hw2","homepage":"","size":90,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ChangeRequest:master","ref":"master","sha":"5c755a2b6f22da6aa988fa54d23fc7c9b9c3f392","user":{"login":"ChangeRequest","id":20873305,"avatar_url":"https://avatars.githubusercontent.com/u/20873305?v=3","gravatar_id":"","url":"https://api.github.com/users/ChangeRequest","html_url":"https://github.com/ChangeRequest","followers_url":"https://api.github.com/users/ChangeRequest/followers","following_url":"https://api.github.com/users/ChangeRequest/following{/other_user}","gists_url":"https://api.github.com/users/ChangeRequest/gists{/gist_id}","starred_url":"https://api.github.com/users/ChangeRequest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChangeRequest/subscriptions","organizations_url":"https://api.github.com/users/ChangeRequest/orgs","repos_url":"https://api.github.com/users/ChangeRequest/repos","events_url":"https://api.github.com/users/ChangeRequest/events{/privacy}","received_events_url":"https://api.github.com/users/ChangeRequest/received_events","type":"Organization","site_admin":false},"repo":{"id":70690213,"name":"introduction.hw2","full_name":"ChangeRequest/introduction.hw2","owner":{"login":"ChangeRequest","id":20873305,"avatar_url":"https://avatars.githubusercontent.com/u/20873305?v=3","gravatar_id":"","url":"https://api.github.com/users/ChangeRequest","html_url":"https://github.com/ChangeRequest","followers_url":"https://api.github.com/users/ChangeRequest/followers","following_url":"https://api.github.com/users/ChangeRequest/following{/other_user}","gists_url":"https://api.github.com/users/ChangeRequest/gists{/gist_id}","starred_url":"https://api.github.com/users/ChangeRequest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChangeRequest/subscriptions","organizations_url":"https://api.github.com/users/ChangeRequest/orgs","repos_url":"https://api.github.com/users/ChangeRequest/repos","events_url":"https://api.github.com/users/ChangeRequest/events{/privacy}","received_events_url":"https://api.github.com/users/ChangeRequest/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ChangeRequest/introduction.hw2","description":"Introduction. Home Work 2","fork":false,"url":"https://api.github.com/repos/ChangeRequest/introduction.hw2","forks_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/forks","keys_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/teams","hooks_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/hooks","issue_events_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/issues/events{/number}","events_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/events","assignees_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/assignees{/user}","branches_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/branches{/branch}","tags_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/tags","blobs_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/statuses/{sha}","languages_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/languages","stargazers_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/stargazers","contributors_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/contributors","subscribers_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/subscribers","subscription_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/subscription","commits_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/contents/{+path}","compare_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/merges","archive_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/downloads","issues_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/issues{/number}","pulls_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls{/number}","milestones_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/milestones{/number}","notifications_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/labels{/name}","releases_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/releases{/id}","deployments_url":"https://api.github.com/repos/ChangeRequest/introduction.hw2/deployments","created_at":"2016-10-12T10:42:47Z","updated_at":"2016-11-02T19:58:37Z","pushed_at":"2016-11-27T22:22:20Z","git_url":"git://github.com/ChangeRequest/introduction.hw2.git","ssh_url":"git@github.com:ChangeRequest/introduction.hw2.git","clone_url":"https://github.com/ChangeRequest/introduction.hw2.git","svn_url":"https://github.com/ChangeRequest/introduction.hw2","homepage":"","size":77,"stargazers_count":0,"watchers_count":0,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":6,"forks":13,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/3"},"html":{"href":"https://github.com/ChangeRequest/introduction.hw2/pull/3"},"issue":{"href":"https://api.github.com/repos/ChangeRequest/introduction.hw2/issues/3"},"comments":{"href":"https://api.github.com/repos/ChangeRequest/introduction.hw2/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ChangeRequest/introduction.hw2/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ChangeRequest/introduction.hw2/statuses/c70745ee268ae15cc9b112101470a8ca1e0ce52e"}}}}
{"actor":{"display_login":"xSAVIKx"}}