{"action":"created","comment":{"url":"https://api.github.com/repos/beadss/java8-study/pulls/comments/176902738","pull_request_review_id":106692316,"id":176902738,"diff_hunk":"@@ -1,10 +1,34 @@\n package sseonmi;\n \n+import sseonmi.step1.LottoGame;\n+\n+import java.util.HashSet;\n+import java.util.Set;\n+\n public class Main {\n \n-\tpublic static void main(String[] args) {\n-\t\t// TODO Auto-generated method stub\n+    public static void main(String[] args) {\n+\n+        Set<Integer> winningList = getRandomNumber();\n+\n+        System.out.println(\"winningNumber : \" + winningList);\n+\n+        LottoGame lottoGame = new LottoGame(5000, winningList);\n+\n+        System.out.println(lottoGame.start());\n+    }\n+\n+\n+    /**\n+     * random number\n+     */\n+    public static Set<Integer> getRandomNumber() {\n+        Set<Integer> randomNumberSet = new HashSet<Integer>();\n+        while (randomNumberSet.size() < 6) {\n+            randomNumberSet.add((int) (Math.random() * 45 + 1));\n+        }\n \n-\t}\n+        return randomNumberSet;\n+    }","path":"src/main/java/sseonmi/Main.java","position":35,"original_position":35,"commit_id":"4fcb14a686cd7e407b8d29725e833b01f3de58ef","original_commit_id":"4fcb14a686cd7e407b8d29725e833b01f3de58ef","user":{"login":"beadss","id":17905976,"avatar_url":"https://avatars1.githubusercontent.com/u/17905976?v=4","gravatar_id":"","url":"https://api.github.com/users/beadss","html_url":"https://github.com/beadss","followers_url":"https://api.github.com/users/beadss/followers","following_url":"https://api.github.com/users/beadss/following{/other_user}","gists_url":"https://api.github.com/users/beadss/gists{/gist_id}","starred_url":"https://api.github.com/users/beadss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beadss/subscriptions","organizations_url":"https://api.github.com/users/beadss/orgs","repos_url":"https://api.github.com/users/beadss/repos","events_url":"https://api.github.com/users/beadss/events{/privacy}","received_events_url":"https://api.github.com/users/beadss/received_events","type":"User","site_admin":false},"body":"중복된 로직이 두군데에 있는데, 하나로 합칠 수 있지 않을까요?","created_at":"2018-03-24T07:44:31Z","updated_at":"2018-03-24T07:54:13Z","html_url":"https://github.com/beadss/java8-study/pull/3#discussion_r176902738","pull_request_url":"https://api.github.com/repos/beadss/java8-study/pulls/3","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/beadss/java8-study/pulls/comments/176902738"},"html":{"href":"https://github.com/beadss/java8-study/pull/3#discussion_r176902738"},"pull_request":{"href":"https://api.github.com/repos/beadss/java8-study/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/beadss/java8-study/pulls/3","id":177178280,"html_url":"https://github.com/beadss/java8-study/pull/3","diff_url":"https://github.com/beadss/java8-study/pull/3.diff","patch_url":"https://github.com/beadss/java8-study/pull/3.patch","issue_url":"https://api.github.com/repos/beadss/java8-study/issues/3","number":3,"state":"open","locked":false,"title":"Step1 seons","user":{"login":"sseonmi","id":37467129,"avatar_url":"https://avatars0.githubusercontent.com/u/37467129?v=4","gravatar_id":"","url":"https://api.github.com/users/sseonmi","html_url":"https://github.com/sseonmi","followers_url":"https://api.github.com/users/sseonmi/followers","following_url":"https://api.github.com/users/sseonmi/following{/other_user}","gists_url":"https://api.github.com/users/sseonmi/gists{/gist_id}","starred_url":"https://api.github.com/users/sseonmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sseonmi/subscriptions","organizations_url":"https://api.github.com/users/sseonmi/orgs","repos_url":"https://api.github.com/users/sseonmi/repos","events_url":"https://api.github.com/users/sseonmi/events{/privacy}","received_events_url":"https://api.github.com/users/sseonmi/received_events","type":"User","site_admin":false},"body":"1차 요구사항 구현.\r\n책 좀 더 보고 적용할 수 있는건 해보도록 할게요.","created_at":"2018-03-23T20:36:57Z","updated_at":"2018-03-24T07:54:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43a04d97fcc30ef7f0c75ecaf49a05033e6ecb44","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/beadss/java8-study/pulls/3/commits","review_comments_url":"https://api.github.com/repos/beadss/java8-study/pulls/3/comments","review_comment_url":"https://api.github.com/repos/beadss/java8-study/pulls/comments{/number}","comments_url":"https://api.github.com/repos/beadss/java8-study/issues/3/comments","statuses_url":"https://api.github.com/repos/beadss/java8-study/statuses/4fcb14a686cd7e407b8d29725e833b01f3de58ef","head":{"label":"beadss:step1-seons","ref":"step1-seons","sha":"4fcb14a686cd7e407b8d29725e833b01f3de58ef","user":{"login":"beadss","id":17905976,"avatar_url":"https://avatars1.githubusercontent.com/u/17905976?v=4","gravatar_id":"","url":"https://api.github.com/users/beadss","html_url":"https://github.com/beadss","followers_url":"https://api.github.com/users/beadss/followers","following_url":"https://api.github.com/users/beadss/following{/other_user}","gists_url":"https://api.github.com/users/beadss/gists{/gist_id}","starred_url":"https://api.github.com/users/beadss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beadss/subscriptions","organizations_url":"https://api.github.com/users/beadss/orgs","repos_url":"https://api.github.com/users/beadss/repos","events_url":"https://api.github.com/users/beadss/events{/privacy}","received_events_url":"https://api.github.com/users/beadss/received_events","type":"User","site_admin":false},"repo":{"id":125602526,"name":"java8-study","full_name":"beadss/java8-study","owner":{"login":"beadss","id":17905976,"avatar_url":"https://avatars1.githubusercontent.com/u/17905976?v=4","gravatar_id":"","url":"https://api.github.com/users/beadss","html_url":"https://github.com/beadss","followers_url":"https://api.github.com/users/beadss/followers","following_url":"https://api.github.com/users/beadss/following{/other_user}","gists_url":"https://api.github.com/users/beadss/gists{/gist_id}","starred_url":"https://api.github.com/users/beadss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beadss/subscriptions","organizations_url":"https://api.github.com/users/beadss/orgs","repos_url":"https://api.github.com/users/beadss/repos","events_url":"https://api.github.com/users/beadss/events{/privacy}","received_events_url":"https://api.github.com/users/beadss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beadss/java8-study","description":null,"fork":false,"url":"https://api.github.com/repos/beadss/java8-study","forks_url":"https://api.github.com/repos/beadss/java8-study/forks","keys_url":"https://api.github.com/repos/beadss/java8-study/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beadss/java8-study/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beadss/java8-study/teams","hooks_url":"https://api.github.com/repos/beadss/java8-study/hooks","issue_events_url":"https://api.github.com/repos/beadss/java8-study/issues/events{/number}","events_url":"https://api.github.com/repos/beadss/java8-study/events","assignees_url":"https://api.github.com/repos/beadss/java8-study/assignees{/user}","branches_url":"https://api.github.com/repos/beadss/java8-study/branches{/branch}","tags_url":"https://api.github.com/repos/beadss/java8-study/tags","blobs_url":"https://api.github.com/repos/beadss/java8-study/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beadss/java8-study/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beadss/java8-study/git/refs{/sha}","trees_url":"https://api.github.com/repos/beadss/java8-study/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beadss/java8-study/statuses/{sha}","languages_url":"https://api.github.com/repos/beadss/java8-study/languages","stargazers_url":"https://api.github.com/repos/beadss/java8-study/stargazers","contributors_url":"https://api.github.com/repos/beadss/java8-study/contributors","subscribers_url":"https://api.github.com/repos/beadss/java8-study/subscribers","subscription_url":"https://api.github.com/repos/beadss/java8-study/subscription","commits_url":"https://api.github.com/repos/beadss/java8-study/commits{/sha}","git_commits_url":"https://api.github.com/repos/beadss/java8-study/git/commits{/sha}","comments_url":"https://api.github.com/repos/beadss/java8-study/comments{/number}","issue_comment_url":"https://api.github.com/repos/beadss/java8-study/issues/comments{/number}","contents_url":"https://api.github.com/repos/beadss/java8-study/contents/{+path}","compare_url":"https://api.github.com/repos/beadss/java8-study/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beadss/java8-study/merges","archive_url":"https://api.github.com/repos/beadss/java8-study/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beadss/java8-study/downloads","issues_url":"https://api.github.com/repos/beadss/java8-study/issues{/number}","pulls_url":"https://api.github.com/repos/beadss/java8-study/pulls{/number}","milestones_url":"https://api.github.com/repos/beadss/java8-study/milestones{/number}","notifications_url":"https://api.github.com/repos/beadss/java8-study/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beadss/java8-study/labels{/name}","releases_url":"https://api.github.com/repos/beadss/java8-study/releases{/id}","deployments_url":"https://api.github.com/repos/beadss/java8-study/deployments","created_at":"2018-03-17T06:17:57Z","updated_at":"2018-03-17T06:45:11Z","pushed_at":"2018-03-23T20:36:58Z","git_url":"git://github.com/beadss/java8-study.git","ssh_url":"git@github.com:beadss/java8-study.git","clone_url":"https://github.com/beadss/java8-study.git","svn_url":"https://github.com/beadss/java8-study","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"beadss:master","ref":"master","sha":"13fc151b5c2657f6331876f688ab655230876e9a","user":{"login":"beadss","id":17905976,"avatar_url":"https://avatars1.githubusercontent.com/u/17905976?v=4","gravatar_id":"","url":"https://api.github.com/users/beadss","html_url":"https://github.com/beadss","followers_url":"https://api.github.com/users/beadss/followers","following_url":"https://api.github.com/users/beadss/following{/other_user}","gists_url":"https://api.github.com/users/beadss/gists{/gist_id}","starred_url":"https://api.github.com/users/beadss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beadss/subscriptions","organizations_url":"https://api.github.com/users/beadss/orgs","repos_url":"https://api.github.com/users/beadss/repos","events_url":"https://api.github.com/users/beadss/events{/privacy}","received_events_url":"https://api.github.com/users/beadss/received_events","type":"User","site_admin":false},"repo":{"id":125602526,"name":"java8-study","full_name":"beadss/java8-study","owner":{"login":"beadss","id":17905976,"avatar_url":"https://avatars1.githubusercontent.com/u/17905976?v=4","gravatar_id":"","url":"https://api.github.com/users/beadss","html_url":"https://github.com/beadss","followers_url":"https://api.github.com/users/beadss/followers","following_url":"https://api.github.com/users/beadss/following{/other_user}","gists_url":"https://api.github.com/users/beadss/gists{/gist_id}","starred_url":"https://api.github.com/users/beadss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beadss/subscriptions","organizations_url":"https://api.github.com/users/beadss/orgs","repos_url":"https://api.github.com/users/beadss/repos","events_url":"https://api.github.com/users/beadss/events{/privacy}","received_events_url":"https://api.github.com/users/beadss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beadss/java8-study","description":null,"fork":false,"url":"https://api.github.com/repos/beadss/java8-study","forks_url":"https://api.github.com/repos/beadss/java8-study/forks","keys_url":"https://api.github.com/repos/beadss/java8-study/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beadss/java8-study/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beadss/java8-study/teams","hooks_url":"https://api.github.com/repos/beadss/java8-study/hooks","issue_events_url":"https://api.github.com/repos/beadss/java8-study/issues/events{/number}","events_url":"https://api.github.com/repos/beadss/java8-study/events","assignees_url":"https://api.github.com/repos/beadss/java8-study/assignees{/user}","branches_url":"https://api.github.com/repos/beadss/java8-study/branches{/branch}","tags_url":"https://api.github.com/repos/beadss/java8-study/tags","blobs_url":"https://api.github.com/repos/beadss/java8-study/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beadss/java8-study/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beadss/java8-study/git/refs{/sha}","trees_url":"https://api.github.com/repos/beadss/java8-study/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beadss/java8-study/statuses/{sha}","languages_url":"https://api.github.com/repos/beadss/java8-study/languages","stargazers_url":"https://api.github.com/repos/beadss/java8-study/stargazers","contributors_url":"https://api.github.com/repos/beadss/java8-study/contributors","subscribers_url":"https://api.github.com/repos/beadss/java8-study/subscribers","subscription_url":"https://api.github.com/repos/beadss/java8-study/subscription","commits_url":"https://api.github.com/repos/beadss/java8-study/commits{/sha}","git_commits_url":"https://api.github.com/repos/beadss/java8-study/git/commits{/sha}","comments_url":"https://api.github.com/repos/beadss/java8-study/comments{/number}","issue_comment_url":"https://api.github.com/repos/beadss/java8-study/issues/comments{/number}","contents_url":"https://api.github.com/repos/beadss/java8-study/contents/{+path}","compare_url":"https://api.github.com/repos/beadss/java8-study/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beadss/java8-study/merges","archive_url":"https://api.github.com/repos/beadss/java8-study/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beadss/java8-study/downloads","issues_url":"https://api.github.com/repos/beadss/java8-study/issues{/number}","pulls_url":"https://api.github.com/repos/beadss/java8-study/pulls{/number}","milestones_url":"https://api.github.com/repos/beadss/java8-study/milestones{/number}","notifications_url":"https://api.github.com/repos/beadss/java8-study/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beadss/java8-study/labels{/name}","releases_url":"https://api.github.com/repos/beadss/java8-study/releases{/id}","deployments_url":"https://api.github.com/repos/beadss/java8-study/deployments","created_at":"2018-03-17T06:17:57Z","updated_at":"2018-03-17T06:45:11Z","pushed_at":"2018-03-23T20:36:58Z","git_url":"git://github.com/beadss/java8-study.git","ssh_url":"git@github.com:beadss/java8-study.git","clone_url":"https://github.com/beadss/java8-study.git","svn_url":"https://github.com/beadss/java8-study","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/beadss/java8-study/pulls/3"},"html":{"href":"https://github.com/beadss/java8-study/pull/3"},"issue":{"href":"https://api.github.com/repos/beadss/java8-study/issues/3"},"comments":{"href":"https://api.github.com/repos/beadss/java8-study/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/beadss/java8-study/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/beadss/java8-study/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/beadss/java8-study/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/beadss/java8-study/statuses/4fcb14a686cd7e407b8d29725e833b01f3de58ef"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"beadss"}}