{"action":"created","comment":{"url":"https://api.github.com/repos/MwMaki/hm10/pulls/comments/83082541","pull_request_review_id":3946855,"id":83082541,"diff_hunk":"@@ -0,0 +1,58 @@\n+JAVA\r\n+\r\n+var a = [\"john\", \"mike\", \"susan\", \"matt\", \"joe\", \"larry\", \"ken\", \"samantha\", \"jenny\", \"Sara\", \"henry\"];\r\n+\r\n+\r\n+for (i=0;i<a.length;i++){\r\n+if(i%2 === 0) {\r\n+\tconsole.log(a[i]);\r\n+}else{\r\n+console.log(a[i].split(\"\").reverse().join(\"\"));\r\n+}\r\n+}\r\n+-------JAVA (IF WE WANT TO AVOID THE NULL AND UNDEFINED ISSUE )--------------------------------------------------------------\r\n+\r\n+var a = [,\"john\",,\"\", \"mike\", \"susan\",, \"matt\",, \"joe\", \"larry\", \"ken\", \"samantha\", \"jenny\", \"Sara\", ,,\"henry\"];\r\n+\r\n+\r\n+for (i=0;i<a.length;i++){\r\n+if (typeof a[i] !== \"undefined\" && a[i] !== null) { \r\n+if(i%2 === 0) {\r\n+console.log(a[i]);\r\n+}else{\r\n+console.log(a[i].split(\"\").reverse().join(\"\"));\r\n+\r\n+}\r\n+}\r\n+}\r\n+--------------------------------------------------------------------------------------\r\n+Ruby\r\n+\r\n+a = [\"john\", \"mike\", \"susan\", \"matt\", \"joe\", \"larry\", \"ken\", \"samantha\", \"jenny\", \"Sara\", \"henry\"];\r\n+\r\n+\r\n+(0..(a.length-1)).step(1) do|x|\r\n+if(x %2 === 0) \r\n+\tputs(a[x]);\r\n+\r\n+elsif\r","path":"Q4.txt","position":38,"original_position":38,"commit_id":"42cd0c2afbd63d4e1b3765812bc6bbcc8cd5da1f","original_commit_id":"42cd0c2afbd63d4e1b3765812bc6bbcc8cd5da1f","user":{"login":"MwMaki","id":22043245,"avatar_url":"https://avatars.githubusercontent.com/u/22043245?v=3","gravatar_id":"","url":"https://api.github.com/users/MwMaki","html_url":"https://github.com/MwMaki","followers_url":"https://api.github.com/users/MwMaki/followers","following_url":"https://api.github.com/users/MwMaki/following{/other_user}","gists_url":"https://api.github.com/users/MwMaki/gists{/gist_id}","starred_url":"https://api.github.com/users/MwMaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MwMaki/subscriptions","organizations_url":"https://api.github.com/users/MwMaki/orgs","repos_url":"https://api.github.com/users/MwMaki/repos","events_url":"https://api.github.com/users/MwMaki/events{/privacy}","received_events_url":"https://api.github.com/users/MwMaki/received_events","type":"User","site_admin":false},"body":"yes I forget that its  (else ) to take the false result and do action ,\r\n    while   (elsif) is to put the array in other condition under the false result  for the 1st condition  ","created_at":"2016-10-12T19:40:09Z","updated_at":"2016-10-12T19:40:09Z","html_url":"https://github.com/MwMaki/hm10/pull/4#discussion_r83082541","pull_request_url":"https://api.github.com/repos/MwMaki/hm10/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/MwMaki/hm10/pulls/comments/83082541"},"html":{"href":"https://github.com/MwMaki/hm10/pull/4#discussion_r83082541"},"pull_request":{"href":"https://api.github.com/repos/MwMaki/hm10/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/MwMaki/hm10/pulls/4","id":88964138,"html_url":"https://github.com/MwMaki/hm10/pull/4","diff_url":"https://github.com/MwMaki/hm10/pull/4.diff","patch_url":"https://github.com/MwMaki/hm10/pull/4.patch","issue_url":"https://api.github.com/repos/MwMaki/hm10/issues/4","number":4,"state":"closed","locked":false,"title":"Q4","user":{"login":"MwMaki","id":22043245,"avatar_url":"https://avatars.githubusercontent.com/u/22043245?v=3","gravatar_id":"","url":"https://api.github.com/users/MwMaki","html_url":"https://github.com/MwMaki","followers_url":"https://api.github.com/users/MwMaki/followers","following_url":"https://api.github.com/users/MwMaki/following{/other_user}","gists_url":"https://api.github.com/users/MwMaki/gists{/gist_id}","starred_url":"https://api.github.com/users/MwMaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MwMaki/subscriptions","organizations_url":"https://api.github.com/users/MwMaki/orgs","repos_url":"https://api.github.com/users/MwMaki/repos","events_url":"https://api.github.com/users/MwMaki/events{/privacy}","received_events_url":"https://api.github.com/users/MwMaki/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-12T07:10:16Z","updated_at":"2016-10-12T19:40:09Z","closed_at":"2016-10-12T15:25:10Z","merged_at":"2016-10-12T15:25:10Z","merge_commit_sha":"42cd0c2afbd63d4e1b3765812bc6bbcc8cd5da1f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/MwMaki/hm10/pulls/4/commits","review_comments_url":"https://api.github.com/repos/MwMaki/hm10/pulls/4/comments","review_comment_url":"https://api.github.com/repos/MwMaki/hm10/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MwMaki/hm10/issues/4/comments","statuses_url":"https://api.github.com/repos/MwMaki/hm10/statuses/42cd0c2afbd63d4e1b3765812bc6bbcc8cd5da1f","head":{"label":"MwMaki:Q4","ref":"Q4","sha":"42cd0c2afbd63d4e1b3765812bc6bbcc8cd5da1f","user":{"login":"MwMaki","id":22043245,"avatar_url":"https://avatars.githubusercontent.com/u/22043245?v=3","gravatar_id":"","url":"https://api.github.com/users/MwMaki","html_url":"https://github.com/MwMaki","followers_url":"https://api.github.com/users/MwMaki/followers","following_url":"https://api.github.com/users/MwMaki/following{/other_user}","gists_url":"https://api.github.com/users/MwMaki/gists{/gist_id}","starred_url":"https://api.github.com/users/MwMaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MwMaki/subscriptions","organizations_url":"https://api.github.com/users/MwMaki/orgs","repos_url":"https://api.github.com/users/MwMaki/repos","events_url":"https://api.github.com/users/MwMaki/events{/privacy}","received_events_url":"https://api.github.com/users/MwMaki/received_events","type":"User","site_admin":false},"repo":{"id":70626594,"name":"hm10","full_name":"MwMaki/hm10","owner":{"login":"MwMaki","id":22043245,"avatar_url":"https://avatars.githubusercontent.com/u/22043245?v=3","gravatar_id":"","url":"https://api.github.com/users/MwMaki","html_url":"https://github.com/MwMaki","followers_url":"https://api.github.com/users/MwMaki/followers","following_url":"https://api.github.com/users/MwMaki/following{/other_user}","gists_url":"https://api.github.com/users/MwMaki/gists{/gist_id}","starred_url":"https://api.github.com/users/MwMaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MwMaki/subscriptions","organizations_url":"https://api.github.com/users/MwMaki/orgs","repos_url":"https://api.github.com/users/MwMaki/repos","events_url":"https://api.github.com/users/MwMaki/events{/privacy}","received_events_url":"https://api.github.com/users/MwMaki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MwMaki/hm10","description":"repo for home work 10 ","fork":false,"url":"https://api.github.com/repos/MwMaki/hm10","forks_url":"https://api.github.com/repos/MwMaki/hm10/forks","keys_url":"https://api.github.com/repos/MwMaki/hm10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MwMaki/hm10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MwMaki/hm10/teams","hooks_url":"https://api.github.com/repos/MwMaki/hm10/hooks","issue_events_url":"https://api.github.com/repos/MwMaki/hm10/issues/events{/number}","events_url":"https://api.github.com/repos/MwMaki/hm10/events","assignees_url":"https://api.github.com/repos/MwMaki/hm10/assignees{/user}","branches_url":"https://api.github.com/repos/MwMaki/hm10/branches{/branch}","tags_url":"https://api.github.com/repos/MwMaki/hm10/tags","blobs_url":"https://api.github.com/repos/MwMaki/hm10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MwMaki/hm10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MwMaki/hm10/git/refs{/sha}","trees_url":"https://api.github.com/repos/MwMaki/hm10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MwMaki/hm10/statuses/{sha}","languages_url":"https://api.github.com/repos/MwMaki/hm10/languages","stargazers_url":"https://api.github.com/repos/MwMaki/hm10/stargazers","contributors_url":"https://api.github.com/repos/MwMaki/hm10/contributors","subscribers_url":"https://api.github.com/repos/MwMaki/hm10/subscribers","subscription_url":"https://api.github.com/repos/MwMaki/hm10/subscription","commits_url":"https://api.github.com/repos/MwMaki/hm10/commits{/sha}","git_commits_url":"https://api.github.com/repos/MwMaki/hm10/git/commits{/sha}","comments_url":"https://api.github.com/repos/MwMaki/hm10/comments{/number}","issue_comment_url":"https://api.github.com/repos/MwMaki/hm10/issues/comments{/number}","contents_url":"https://api.github.com/repos/MwMaki/hm10/contents/{+path}","compare_url":"https://api.github.com/repos/MwMaki/hm10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MwMaki/hm10/merges","archive_url":"https://api.github.com/repos/MwMaki/hm10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MwMaki/hm10/downloads","issues_url":"https://api.github.com/repos/MwMaki/hm10/issues{/number}","pulls_url":"https://api.github.com/repos/MwMaki/hm10/pulls{/number}","milestones_url":"https://api.github.com/repos/MwMaki/hm10/milestones{/number}","notifications_url":"https://api.github.com/repos/MwMaki/hm10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MwMaki/hm10/labels{/name}","releases_url":"https://api.github.com/repos/MwMaki/hm10/releases{/id}","deployments_url":"https://api.github.com/repos/MwMaki/hm10/deployments","created_at":"2016-10-11T19:08:41Z","updated_at":"2016-10-11T19:08:41Z","pushed_at":"2016-10-12T15:27:03Z","git_url":"git://github.com/MwMaki/hm10.git","ssh_url":"git@github.com:MwMaki/hm10.git","clone_url":"https://github.com/MwMaki/hm10.git","svn_url":"https://github.com/MwMaki/hm10","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"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":"MwMaki:master","ref":"master","sha":"0e6fc7fa9fc5cba36a7f1da9525c2fa9b0ba1d54","user":{"login":"MwMaki","id":22043245,"avatar_url":"https://avatars.githubusercontent.com/u/22043245?v=3","gravatar_id":"","url":"https://api.github.com/users/MwMaki","html_url":"https://github.com/MwMaki","followers_url":"https://api.github.com/users/MwMaki/followers","following_url":"https://api.github.com/users/MwMaki/following{/other_user}","gists_url":"https://api.github.com/users/MwMaki/gists{/gist_id}","starred_url":"https://api.github.com/users/MwMaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MwMaki/subscriptions","organizations_url":"https://api.github.com/users/MwMaki/orgs","repos_url":"https://api.github.com/users/MwMaki/repos","events_url":"https://api.github.com/users/MwMaki/events{/privacy}","received_events_url":"https://api.github.com/users/MwMaki/received_events","type":"User","site_admin":false},"repo":{"id":70626594,"name":"hm10","full_name":"MwMaki/hm10","owner":{"login":"MwMaki","id":22043245,"avatar_url":"https://avatars.githubusercontent.com/u/22043245?v=3","gravatar_id":"","url":"https://api.github.com/users/MwMaki","html_url":"https://github.com/MwMaki","followers_url":"https://api.github.com/users/MwMaki/followers","following_url":"https://api.github.com/users/MwMaki/following{/other_user}","gists_url":"https://api.github.com/users/MwMaki/gists{/gist_id}","starred_url":"https://api.github.com/users/MwMaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MwMaki/subscriptions","organizations_url":"https://api.github.com/users/MwMaki/orgs","repos_url":"https://api.github.com/users/MwMaki/repos","events_url":"https://api.github.com/users/MwMaki/events{/privacy}","received_events_url":"https://api.github.com/users/MwMaki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MwMaki/hm10","description":"repo for home work 10 ","fork":false,"url":"https://api.github.com/repos/MwMaki/hm10","forks_url":"https://api.github.com/repos/MwMaki/hm10/forks","keys_url":"https://api.github.com/repos/MwMaki/hm10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MwMaki/hm10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MwMaki/hm10/teams","hooks_url":"https://api.github.com/repos/MwMaki/hm10/hooks","issue_events_url":"https://api.github.com/repos/MwMaki/hm10/issues/events{/number}","events_url":"https://api.github.com/repos/MwMaki/hm10/events","assignees_url":"https://api.github.com/repos/MwMaki/hm10/assignees{/user}","branches_url":"https://api.github.com/repos/MwMaki/hm10/branches{/branch}","tags_url":"https://api.github.com/repos/MwMaki/hm10/tags","blobs_url":"https://api.github.com/repos/MwMaki/hm10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MwMaki/hm10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MwMaki/hm10/git/refs{/sha}","trees_url":"https://api.github.com/repos/MwMaki/hm10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MwMaki/hm10/statuses/{sha}","languages_url":"https://api.github.com/repos/MwMaki/hm10/languages","stargazers_url":"https://api.github.com/repos/MwMaki/hm10/stargazers","contributors_url":"https://api.github.com/repos/MwMaki/hm10/contributors","subscribers_url":"https://api.github.com/repos/MwMaki/hm10/subscribers","subscription_url":"https://api.github.com/repos/MwMaki/hm10/subscription","commits_url":"https://api.github.com/repos/MwMaki/hm10/commits{/sha}","git_commits_url":"https://api.github.com/repos/MwMaki/hm10/git/commits{/sha}","comments_url":"https://api.github.com/repos/MwMaki/hm10/comments{/number}","issue_comment_url":"https://api.github.com/repos/MwMaki/hm10/issues/comments{/number}","contents_url":"https://api.github.com/repos/MwMaki/hm10/contents/{+path}","compare_url":"https://api.github.com/repos/MwMaki/hm10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MwMaki/hm10/merges","archive_url":"https://api.github.com/repos/MwMaki/hm10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MwMaki/hm10/downloads","issues_url":"https://api.github.com/repos/MwMaki/hm10/issues{/number}","pulls_url":"https://api.github.com/repos/MwMaki/hm10/pulls{/number}","milestones_url":"https://api.github.com/repos/MwMaki/hm10/milestones{/number}","notifications_url":"https://api.github.com/repos/MwMaki/hm10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MwMaki/hm10/labels{/name}","releases_url":"https://api.github.com/repos/MwMaki/hm10/releases{/id}","deployments_url":"https://api.github.com/repos/MwMaki/hm10/deployments","created_at":"2016-10-11T19:08:41Z","updated_at":"2016-10-11T19:08:41Z","pushed_at":"2016-10-12T15:27:03Z","git_url":"git://github.com/MwMaki/hm10.git","ssh_url":"git@github.com:MwMaki/hm10.git","clone_url":"https://github.com/MwMaki/hm10.git","svn_url":"https://github.com/MwMaki/hm10","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/MwMaki/hm10/pulls/4"},"html":{"href":"https://github.com/MwMaki/hm10/pull/4"},"issue":{"href":"https://api.github.com/repos/MwMaki/hm10/issues/4"},"comments":{"href":"https://api.github.com/repos/MwMaki/hm10/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/MwMaki/hm10/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/MwMaki/hm10/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MwMaki/hm10/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/MwMaki/hm10/statuses/42cd0c2afbd63d4e1b3765812bc6bbcc8cd5da1f"}}}}
{"actor":{"display_login":"MwMaki"}}