{"action":"created","comment":{"url":"https://api.github.com/repos/breaktheice/Assignments/pulls/comments/100662410","pull_request_review_id":21381245,"id":100662410,"diff_hunk":"@@ -7,19 +6,71 @@\n  */\n public class StringUtil {\n \n-    private static String[] URLParser(String url){\n+\tprivate static String[] strSplitArr = null;\n+\tprivate static String strReverse =\"\";\n+   private static String[] URLParser(String url){\n         //WRITE YOUR CODE HERE..\n-        //parse the url and get all the get parameters and return an array of Strings\n+\t    //parse the url and get all the get parameters and return an array of Strings\n         //Input: google.com/api?param1=value1&param2=value2\n         //Output: array of strings [] = { {param1:value1}, {param2:value2} }\n+\t   int index = url.indexOf(\"?\");\n+\t   String s= url.substring(index+1);\n+\t   strSplitArr = s.split(\"&\"); \n+\t   for(int i=0 ; i< strSplitArr.length ; i++){\n+\t\t   strSplitArr[i] =\"{\" +  strSplitArr[i].replaceAll(\"=\",\":\")+\"}\";","path":"StringUtil.java","position":22,"original_position":22,"commit_id":"d84904ac9a55d855dae9b56c70708bb8e21eacbc","original_commit_id":"d84904ac9a55d855dae9b56c70708bb8e21eacbc","user":{"login":"balamuralim","id":25500818,"avatar_url":"https://avatars.githubusercontent.com/u/25500818?v=3","gravatar_id":"","url":"https://api.github.com/users/balamuralim","html_url":"https://github.com/balamuralim","followers_url":"https://api.github.com/users/balamuralim/followers","following_url":"https://api.github.com/users/balamuralim/following{/other_user}","gists_url":"https://api.github.com/users/balamuralim/gists{/gist_id}","starred_url":"https://api.github.com/users/balamuralim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balamuralim/subscriptions","organizations_url":"https://api.github.com/users/balamuralim/orgs","repos_url":"https://api.github.com/users/balamuralim/repos","events_url":"https://api.github.com/users/balamuralim/events{/privacy}","received_events_url":"https://api.github.com/users/balamuralim/received_events","type":"User","site_admin":false},"body":"Excellent use of replaceAll() 👍 ","created_at":"2017-02-11T07:35:46Z","updated_at":"2017-02-11T07:36:16Z","html_url":"https://github.com/breaktheice/Assignments/pull/12#discussion_r100662410","pull_request_url":"https://api.github.com/repos/breaktheice/Assignments/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/breaktheice/Assignments/pulls/comments/100662410"},"html":{"href":"https://github.com/breaktheice/Assignments/pull/12#discussion_r100662410"},"pull_request":{"href":"https://api.github.com/repos/breaktheice/Assignments/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/breaktheice/Assignments/pulls/12","id":105366540,"html_url":"https://github.com/breaktheice/Assignments/pull/12","diff_url":"https://github.com/breaktheice/Assignments/pull/12.diff","patch_url":"https://github.com/breaktheice/Assignments/pull/12.patch","issue_url":"https://api.github.com/repos/breaktheice/Assignments/issues/12","number":12,"state":"open","locked":false,"title":"StringUtil.java-usha","user":{"login":"UUsha","id":25544859,"avatar_url":"https://avatars.githubusercontent.com/u/25544859?v=3","gravatar_id":"","url":"https://api.github.com/users/UUsha","html_url":"https://github.com/UUsha","followers_url":"https://api.github.com/users/UUsha/followers","following_url":"https://api.github.com/users/UUsha/following{/other_user}","gists_url":"https://api.github.com/users/UUsha/gists{/gist_id}","starred_url":"https://api.github.com/users/UUsha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UUsha/subscriptions","organizations_url":"https://api.github.com/users/UUsha/orgs","repos_url":"https://api.github.com/users/UUsha/repos","events_url":"https://api.github.com/users/UUsha/events{/privacy}","received_events_url":"https://api.github.com/users/UUsha/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-09T06:19:26Z","updated_at":"2017-02-11T07:36:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0cee7b92fa190d4436e95afd579a5117d86aac2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/breaktheice/Assignments/pulls/12/commits","review_comments_url":"https://api.github.com/repos/breaktheice/Assignments/pulls/12/comments","review_comment_url":"https://api.github.com/repos/breaktheice/Assignments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/breaktheice/Assignments/issues/12/comments","statuses_url":"https://api.github.com/repos/breaktheice/Assignments/statuses/d84904ac9a55d855dae9b56c70708bb8e21eacbc","head":{"label":"UUsha:patch-3","ref":"patch-3","sha":"d84904ac9a55d855dae9b56c70708bb8e21eacbc","user":{"login":"UUsha","id":25544859,"avatar_url":"https://avatars.githubusercontent.com/u/25544859?v=3","gravatar_id":"","url":"https://api.github.com/users/UUsha","html_url":"https://github.com/UUsha","followers_url":"https://api.github.com/users/UUsha/followers","following_url":"https://api.github.com/users/UUsha/following{/other_user}","gists_url":"https://api.github.com/users/UUsha/gists{/gist_id}","starred_url":"https://api.github.com/users/UUsha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UUsha/subscriptions","organizations_url":"https://api.github.com/users/UUsha/orgs","repos_url":"https://api.github.com/users/UUsha/repos","events_url":"https://api.github.com/users/UUsha/events{/privacy}","received_events_url":"https://api.github.com/users/UUsha/received_events","type":"User","site_admin":false},"repo":{"id":80927318,"name":"Class1","full_name":"UUsha/Class1","owner":{"login":"UUsha","id":25544859,"avatar_url":"https://avatars.githubusercontent.com/u/25544859?v=3","gravatar_id":"","url":"https://api.github.com/users/UUsha","html_url":"https://github.com/UUsha","followers_url":"https://api.github.com/users/UUsha/followers","following_url":"https://api.github.com/users/UUsha/following{/other_user}","gists_url":"https://api.github.com/users/UUsha/gists{/gist_id}","starred_url":"https://api.github.com/users/UUsha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UUsha/subscriptions","organizations_url":"https://api.github.com/users/UUsha/orgs","repos_url":"https://api.github.com/users/UUsha/repos","events_url":"https://api.github.com/users/UUsha/events{/privacy}","received_events_url":"https://api.github.com/users/UUsha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/UUsha/Class1","description":"Class 1","fork":true,"url":"https://api.github.com/repos/UUsha/Class1","forks_url":"https://api.github.com/repos/UUsha/Class1/forks","keys_url":"https://api.github.com/repos/UUsha/Class1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UUsha/Class1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UUsha/Class1/teams","hooks_url":"https://api.github.com/repos/UUsha/Class1/hooks","issue_events_url":"https://api.github.com/repos/UUsha/Class1/issues/events{/number}","events_url":"https://api.github.com/repos/UUsha/Class1/events","assignees_url":"https://api.github.com/repos/UUsha/Class1/assignees{/user}","branches_url":"https://api.github.com/repos/UUsha/Class1/branches{/branch}","tags_url":"https://api.github.com/repos/UUsha/Class1/tags","blobs_url":"https://api.github.com/repos/UUsha/Class1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UUsha/Class1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UUsha/Class1/git/refs{/sha}","trees_url":"https://api.github.com/repos/UUsha/Class1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UUsha/Class1/statuses/{sha}","languages_url":"https://api.github.com/repos/UUsha/Class1/languages","stargazers_url":"https://api.github.com/repos/UUsha/Class1/stargazers","contributors_url":"https://api.github.com/repos/UUsha/Class1/contributors","subscribers_url":"https://api.github.com/repos/UUsha/Class1/subscribers","subscription_url":"https://api.github.com/repos/UUsha/Class1/subscription","commits_url":"https://api.github.com/repos/UUsha/Class1/commits{/sha}","git_commits_url":"https://api.github.com/repos/UUsha/Class1/git/commits{/sha}","comments_url":"https://api.github.com/repos/UUsha/Class1/comments{/number}","issue_comment_url":"https://api.github.com/repos/UUsha/Class1/issues/comments{/number}","contents_url":"https://api.github.com/repos/UUsha/Class1/contents/{+path}","compare_url":"https://api.github.com/repos/UUsha/Class1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UUsha/Class1/merges","archive_url":"https://api.github.com/repos/UUsha/Class1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UUsha/Class1/downloads","issues_url":"https://api.github.com/repos/UUsha/Class1/issues{/number}","pulls_url":"https://api.github.com/repos/UUsha/Class1/pulls{/number}","milestones_url":"https://api.github.com/repos/UUsha/Class1/milestones{/number}","notifications_url":"https://api.github.com/repos/UUsha/Class1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UUsha/Class1/labels{/name}","releases_url":"https://api.github.com/repos/UUsha/Class1/releases{/id}","deployments_url":"https://api.github.com/repos/UUsha/Class1/deployments","created_at":"2017-02-04T15:14:50Z","updated_at":"2017-02-04T15:14:51Z","pushed_at":"2017-02-09T08:24:03Z","git_url":"git://github.com/UUsha/Class1.git","ssh_url":"git@github.com:UUsha/Class1.git","clone_url":"https://github.com/UUsha/Class1.git","svn_url":"https://github.com/UUsha/Class1","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"breaktheice:master","ref":"master","sha":"7168dcbbd454e1efe127b289c0feea78b797af49","user":{"login":"breaktheice","id":25498186,"avatar_url":"https://avatars.githubusercontent.com/u/25498186?v=3","gravatar_id":"","url":"https://api.github.com/users/breaktheice","html_url":"https://github.com/breaktheice","followers_url":"https://api.github.com/users/breaktheice/followers","following_url":"https://api.github.com/users/breaktheice/following{/other_user}","gists_url":"https://api.github.com/users/breaktheice/gists{/gist_id}","starred_url":"https://api.github.com/users/breaktheice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breaktheice/subscriptions","organizations_url":"https://api.github.com/users/breaktheice/orgs","repos_url":"https://api.github.com/users/breaktheice/repos","events_url":"https://api.github.com/users/breaktheice/events{/privacy}","received_events_url":"https://api.github.com/users/breaktheice/received_events","type":"Organization","site_admin":false},"repo":{"id":80695008,"name":"Assignments","full_name":"breaktheice/Assignments","owner":{"login":"breaktheice","id":25498186,"avatar_url":"https://avatars.githubusercontent.com/u/25498186?v=3","gravatar_id":"","url":"https://api.github.com/users/breaktheice","html_url":"https://github.com/breaktheice","followers_url":"https://api.github.com/users/breaktheice/followers","following_url":"https://api.github.com/users/breaktheice/following{/other_user}","gists_url":"https://api.github.com/users/breaktheice/gists{/gist_id}","starred_url":"https://api.github.com/users/breaktheice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breaktheice/subscriptions","organizations_url":"https://api.github.com/users/breaktheice/orgs","repos_url":"https://api.github.com/users/breaktheice/repos","events_url":"https://api.github.com/users/breaktheice/events{/privacy}","received_events_url":"https://api.github.com/users/breaktheice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/breaktheice/Assignments","description":"Assignments","fork":false,"url":"https://api.github.com/repos/breaktheice/Assignments","forks_url":"https://api.github.com/repos/breaktheice/Assignments/forks","keys_url":"https://api.github.com/repos/breaktheice/Assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/breaktheice/Assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/breaktheice/Assignments/teams","hooks_url":"https://api.github.com/repos/breaktheice/Assignments/hooks","issue_events_url":"https://api.github.com/repos/breaktheice/Assignments/issues/events{/number}","events_url":"https://api.github.com/repos/breaktheice/Assignments/events","assignees_url":"https://api.github.com/repos/breaktheice/Assignments/assignees{/user}","branches_url":"https://api.github.com/repos/breaktheice/Assignments/branches{/branch}","tags_url":"https://api.github.com/repos/breaktheice/Assignments/tags","blobs_url":"https://api.github.com/repos/breaktheice/Assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/breaktheice/Assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/breaktheice/Assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/breaktheice/Assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/breaktheice/Assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/breaktheice/Assignments/languages","stargazers_url":"https://api.github.com/repos/breaktheice/Assignments/stargazers","contributors_url":"https://api.github.com/repos/breaktheice/Assignments/contributors","subscribers_url":"https://api.github.com/repos/breaktheice/Assignments/subscribers","subscription_url":"https://api.github.com/repos/breaktheice/Assignments/subscription","commits_url":"https://api.github.com/repos/breaktheice/Assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/breaktheice/Assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/breaktheice/Assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/breaktheice/Assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/breaktheice/Assignments/contents/{+path}","compare_url":"https://api.github.com/repos/breaktheice/Assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/breaktheice/Assignments/merges","archive_url":"https://api.github.com/repos/breaktheice/Assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/breaktheice/Assignments/downloads","issues_url":"https://api.github.com/repos/breaktheice/Assignments/issues{/number}","pulls_url":"https://api.github.com/repos/breaktheice/Assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/breaktheice/Assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/breaktheice/Assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/breaktheice/Assignments/labels{/name}","releases_url":"https://api.github.com/repos/breaktheice/Assignments/releases{/id}","deployments_url":"https://api.github.com/repos/breaktheice/Assignments/deployments","created_at":"2017-02-02T05:02:16Z","updated_at":"2017-02-04T20:45:25Z","pushed_at":"2017-02-10T13:32:52Z","git_url":"git://github.com/breaktheice/Assignments.git","ssh_url":"git@github.com:breaktheice/Assignments.git","clone_url":"https://github.com/breaktheice/Assignments.git","svn_url":"https://github.com/breaktheice/Assignments","homepage":"","size":10,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":7,"forks":5,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/breaktheice/Assignments/pulls/12"},"html":{"href":"https://github.com/breaktheice/Assignments/pull/12"},"issue":{"href":"https://api.github.com/repos/breaktheice/Assignments/issues/12"},"comments":{"href":"https://api.github.com/repos/breaktheice/Assignments/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/breaktheice/Assignments/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/breaktheice/Assignments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/breaktheice/Assignments/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/breaktheice/Assignments/statuses/d84904ac9a55d855dae9b56c70708bb8e21eacbc"}}}}
{"actor":{"display_login":"balamuralim"}}