{"action":"created","comment":{"url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/comments/218099608","pull_request_review_id":155963017,"id":218099608,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODA5OTYwOA==","diff_hunk":"@@ -0,0 +1,72 @@\n+import java.util.Scanner;\n+\n+import static java.lang.Integer.parseInt;\n+\n+public class Calculator {\n+\n+    public int add(int a, int b) {\n+        return a + b;\n+    }\n+\n+    public int subtract(int a, int b) {\n+        return a - b;\n+    }\n+\n+    public int multiply(int a, int b) {\n+        return a * b;\n+    }\n+\n+    public int divide(int a, int b) {\n+        return a / b;\n+    }\n+\n+    public int calculate(int result, int operand, String operator) {\n+        switch (operator) {\n+            case \"+\":\n+                result = add(result, operand);\n+                break;\n+\n+            case \"-\":\n+                result = subtract(result, operand);\n+                break;\n+\n+            case \"*\":\n+                result = multiply(result, operand);\n+                break;\n+\n+            case \"/\":\n+                result = divide(result, operand);\n+                break;\n+\n+            default:\n+                System.out.println(\"unsupported operator:\" + operator);\n+        }\n+        return result;\n+    }\n+\n+","path":"src/main/java/Calculator.java","position":47,"original_position":47,"commit_id":"d4da71ca682aca47c863ef6695bab887b37c9324","original_commit_id":"d4da71ca682aca47c863ef6695bab887b37c9324","user":{"login":"hyukjin-lee","id":14870706,"node_id":"MDQ6VXNlcjE0ODcwNzA2","avatar_url":"https://avatars2.githubusercontent.com/u/14870706?v=4","gravatar_id":"","url":"https://api.github.com/users/hyukjin-lee","html_url":"https://github.com/hyukjin-lee","followers_url":"https://api.github.com/users/hyukjin-lee/followers","following_url":"https://api.github.com/users/hyukjin-lee/following{/other_user}","gists_url":"https://api.github.com/users/hyukjin-lee/gists{/gist_id}","starred_url":"https://api.github.com/users/hyukjin-lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyukjin-lee/subscriptions","organizations_url":"https://api.github.com/users/hyukjin-lee/orgs","repos_url":"https://api.github.com/users/hyukjin-lee/repos","events_url":"https://api.github.com/users/hyukjin-lee/events{/privacy}","received_events_url":"https://api.github.com/users/hyukjin-lee/received_events","type":"User","site_admin":false},"body":"불필요한 공백","created_at":"2018-09-17T14:49:02Z","updated_at":"2018-09-17T14:50:57Z","html_url":"https://github.com/JNU-econovation/java-study-racingGame/pull/4#discussion_r218099608","pull_request_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/comments/218099608"},"html":{"href":"https://github.com/JNU-econovation/java-study-racingGame/pull/4#discussion_r218099608"},"pull_request":{"href":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/4","id":215595201,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NTk1MjAx","html_url":"https://github.com/JNU-econovation/java-study-racingGame/pull/4","diff_url":"https://github.com/JNU-econovation/java-study-racingGame/pull/4.diff","patch_url":"https://github.com/JNU-econovation/java-study-racingGame/pull/4.patch","issue_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/issues/4","number":4,"state":"open","locked":false,"title":"[이상은] 문자열 계산기 구현 완료","user":{"login":"sangeuni","id":43201029,"node_id":"MDQ6VXNlcjQzMjAxMDI5","avatar_url":"https://avatars3.githubusercontent.com/u/43201029?v=4","gravatar_id":"","url":"https://api.github.com/users/sangeuni","html_url":"https://github.com/sangeuni","followers_url":"https://api.github.com/users/sangeuni/followers","following_url":"https://api.github.com/users/sangeuni/following{/other_user}","gists_url":"https://api.github.com/users/sangeuni/gists{/gist_id}","starred_url":"https://api.github.com/users/sangeuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangeuni/subscriptions","organizations_url":"https://api.github.com/users/sangeuni/orgs","repos_url":"https://api.github.com/users/sangeuni/repos","events_url":"https://api.github.com/users/sangeuni/events{/privacy}","received_events_url":"https://api.github.com/users/sangeuni/received_events","type":"User","site_admin":false},"body":"문자열 계산기 Calculator 클래스 추가하였습니다.","created_at":"2018-09-14T13:31:03Z","updated_at":"2018-09-17T14:50:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5cff6a32cd05671f860b63c7fdd1cf96ce5cf380","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/4/commits","review_comments_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/4/comments","review_comment_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/issues/4/comments","statuses_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/statuses/d4da71ca682aca47c863ef6695bab887b37c9324","head":{"label":"sangeuni:step0","ref":"step0","sha":"d4da71ca682aca47c863ef6695bab887b37c9324","user":{"login":"sangeuni","id":43201029,"node_id":"MDQ6VXNlcjQzMjAxMDI5","avatar_url":"https://avatars3.githubusercontent.com/u/43201029?v=4","gravatar_id":"","url":"https://api.github.com/users/sangeuni","html_url":"https://github.com/sangeuni","followers_url":"https://api.github.com/users/sangeuni/followers","following_url":"https://api.github.com/users/sangeuni/following{/other_user}","gists_url":"https://api.github.com/users/sangeuni/gists{/gist_id}","starred_url":"https://api.github.com/users/sangeuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangeuni/subscriptions","organizations_url":"https://api.github.com/users/sangeuni/orgs","repos_url":"https://api.github.com/users/sangeuni/repos","events_url":"https://api.github.com/users/sangeuni/events{/privacy}","received_events_url":"https://api.github.com/users/sangeuni/received_events","type":"User","site_admin":false},"repo":{"id":148447600,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg0NDc2MDA=","name":"java-study-racingGame","full_name":"sangeuni/java-study-racingGame","private":false,"owner":{"login":"sangeuni","id":43201029,"node_id":"MDQ6VXNlcjQzMjAxMDI5","avatar_url":"https://avatars3.githubusercontent.com/u/43201029?v=4","gravatar_id":"","url":"https://api.github.com/users/sangeuni","html_url":"https://github.com/sangeuni","followers_url":"https://api.github.com/users/sangeuni/followers","following_url":"https://api.github.com/users/sangeuni/following{/other_user}","gists_url":"https://api.github.com/users/sangeuni/gists{/gist_id}","starred_url":"https://api.github.com/users/sangeuni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangeuni/subscriptions","organizations_url":"https://api.github.com/users/sangeuni/orgs","repos_url":"https://api.github.com/users/sangeuni/repos","events_url":"https://api.github.com/users/sangeuni/events{/privacy}","received_events_url":"https://api.github.com/users/sangeuni/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sangeuni/java-study-racingGame","description":"ECONOVATION java study racingGame Practice","fork":true,"url":"https://api.github.com/repos/sangeuni/java-study-racingGame","forks_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/forks","keys_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/teams","hooks_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/hooks","issue_events_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/issues/events{/number}","events_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/events","assignees_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/assignees{/user}","branches_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/branches{/branch}","tags_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/tags","blobs_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/statuses/{sha}","languages_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/languages","stargazers_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/stargazers","contributors_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/contributors","subscribers_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/subscribers","subscription_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/subscription","commits_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/contents/{+path}","compare_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/merges","archive_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/downloads","issues_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/issues{/number}","pulls_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/pulls{/number}","milestones_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/milestones{/number}","notifications_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/labels{/name}","releases_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/releases{/id}","deployments_url":"https://api.github.com/repos/sangeuni/java-study-racingGame/deployments","created_at":"2018-09-12T08:30:06Z","updated_at":"2018-09-12T08:30:08Z","pushed_at":"2018-09-14T18:28:07Z","git_url":"git://github.com/sangeuni/java-study-racingGame.git","ssh_url":"git@github.com:sangeuni/java-study-racingGame.git","clone_url":"https://github.com/sangeuni/java-study-racingGame.git","svn_url":"https://github.com/sangeuni/java-study-racingGame","homepage":null,"size":101,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JNU-econovation:econo-sangeun","ref":"econo-sangeun","sha":"775398daac211542ff5bab333aad2642756fba3f","user":{"login":"JNU-econovation","id":38030549,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDMwNTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/38030549?v=4","gravatar_id":"","url":"https://api.github.com/users/JNU-econovation","html_url":"https://github.com/JNU-econovation","followers_url":"https://api.github.com/users/JNU-econovation/followers","following_url":"https://api.github.com/users/JNU-econovation/following{/other_user}","gists_url":"https://api.github.com/users/JNU-econovation/gists{/gist_id}","starred_url":"https://api.github.com/users/JNU-econovation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JNU-econovation/subscriptions","organizations_url":"https://api.github.com/users/JNU-econovation/orgs","repos_url":"https://api.github.com/users/JNU-econovation/repos","events_url":"https://api.github.com/users/JNU-econovation/events{/privacy}","received_events_url":"https://api.github.com/users/JNU-econovation/received_events","type":"Organization","site_admin":false},"repo":{"id":148266470,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgyNjY0NzA=","name":"java-study-racingGame","full_name":"JNU-econovation/java-study-racingGame","private":false,"owner":{"login":"JNU-econovation","id":38030549,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDMwNTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/38030549?v=4","gravatar_id":"","url":"https://api.github.com/users/JNU-econovation","html_url":"https://github.com/JNU-econovation","followers_url":"https://api.github.com/users/JNU-econovation/followers","following_url":"https://api.github.com/users/JNU-econovation/following{/other_user}","gists_url":"https://api.github.com/users/JNU-econovation/gists{/gist_id}","starred_url":"https://api.github.com/users/JNU-econovation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JNU-econovation/subscriptions","organizations_url":"https://api.github.com/users/JNU-econovation/orgs","repos_url":"https://api.github.com/users/JNU-econovation/repos","events_url":"https://api.github.com/users/JNU-econovation/events{/privacy}","received_events_url":"https://api.github.com/users/JNU-econovation/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JNU-econovation/java-study-racingGame","description":"ECONOVATION java study racingGame Practice","fork":true,"url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame","forks_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/forks","keys_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/teams","hooks_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/hooks","issue_events_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/issues/events{/number}","events_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/events","assignees_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/assignees{/user}","branches_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/branches{/branch}","tags_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/tags","blobs_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/git/refs{/sha}","trees_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/statuses/{sha}","languages_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/languages","stargazers_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/stargazers","contributors_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/contributors","subscribers_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/subscribers","subscription_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/subscription","commits_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/commits{/sha}","git_commits_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/git/commits{/sha}","comments_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/comments{/number}","issue_comment_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/issues/comments{/number}","contents_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/contents/{+path}","compare_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/merges","archive_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/downloads","issues_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/issues{/number}","pulls_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls{/number}","milestones_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/milestones{/number}","notifications_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/labels{/name}","releases_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/releases{/id}","deployments_url":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/deployments","created_at":"2018-09-11T05:44:23Z","updated_at":"2018-09-11T05:44:25Z","pushed_at":"2018-09-17T14:45:58Z","git_url":"git://github.com/JNU-econovation/java-study-racingGame.git","ssh_url":"git@github.com:JNU-econovation/java-study-racingGame.git","clone_url":"https://github.com/JNU-econovation/java-study-racingGame.git","svn_url":"https://github.com/JNU-econovation/java-study-racingGame","homepage":null,"size":103,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":5,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/4"},"html":{"href":"https://github.com/JNU-econovation/java-study-racingGame/pull/4"},"issue":{"href":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/issues/4"},"comments":{"href":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/JNU-econovation/java-study-racingGame/statuses/d4da71ca682aca47c863ef6695bab887b37c9324"}},"author_association":"NONE"}}
{"actor":{"display_login":"hyukjin-lee"}}