{"action":"created","comment":{"url":"https://api.github.com/repos/a3095194/algorithm/pulls/comments/63164995","id":63164995,"diff_hunk":"@@ -23,13 +24,27 @@ public static void main(String[] args) {\n \t * @param コマンドライン引数1\n \t * @return 計算結果\n \t */\n-\tpublic static int getFact(String value) {\n-\t\tint v = CastUtil.strToInt(value);\n+\tpublic static int calculateFact(int value) {\n \t\tint fact = 1;\n+\t\tint count = fact;\n+\t\tint j = 0;\n+\t\tint i = 1;\n+\t\tif (count == 1) {\n+\t\t\tj = value;\n+\t\t}\n+\t\tif (count >= 2) {\n+\t\t\ti = value;\n+\t\t}\n+\t\t// for (int i = 1; i <= value; i++) {","path":"Mondai/src/jp/ditgroup/algorithm/Factorial.java","position":27,"original_position":27,"commit_id":"161627a7dc29726eee77da00884d638e603c173b","original_commit_id":"161627a7dc29726eee77da00884d638e603c173b","user":{"login":"a3095194","id":15305615,"avatar_url":"https://avatars.githubusercontent.com/u/15305615?v=3","gravatar_id":"","url":"https://api.github.com/users/a3095194","html_url":"https://github.com/a3095194","followers_url":"https://api.github.com/users/a3095194/followers","following_url":"https://api.github.com/users/a3095194/following{/other_user}","gists_url":"https://api.github.com/users/a3095194/gists{/gist_id}","starred_url":"https://api.github.com/users/a3095194/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3095194/subscriptions","organizations_url":"https://api.github.com/users/a3095194/orgs","repos_url":"https://api.github.com/users/a3095194/repos","events_url":"https://api.github.com/users/a3095194/events{/privacy}","received_events_url":"https://api.github.com/users/a3095194/received_events","type":"User","site_admin":false},"body":"修正します:bow","created_at":"2016-05-13T10:48:39Z","updated_at":"2016-05-13T10:48:39Z","html_url":"https://github.com/a3095194/algorithm/pull/1#discussion_r63164995","pull_request_url":"https://api.github.com/repos/a3095194/algorithm/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/a3095194/algorithm/pulls/comments/63164995"},"html":{"href":"https://github.com/a3095194/algorithm/pull/1#discussion_r63164995"},"pull_request":{"href":"https://api.github.com/repos/a3095194/algorithm/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/a3095194/algorithm/pulls/1","id":69976406,"html_url":"https://github.com/a3095194/algorithm/pull/1","diff_url":"https://github.com/a3095194/algorithm/pull/1.diff","patch_url":"https://github.com/a3095194/algorithm/pull/1.patch","issue_url":"https://api.github.com/repos/a3095194/algorithm/issues/1","number":1,"state":"open","locked":false,"title":"初プルリクエスト","user":{"login":"a3095194","id":15305615,"avatar_url":"https://avatars.githubusercontent.com/u/15305615?v=3","gravatar_id":"","url":"https://api.github.com/users/a3095194","html_url":"https://github.com/a3095194","followers_url":"https://api.github.com/users/a3095194/followers","following_url":"https://api.github.com/users/a3095194/following{/other_user}","gists_url":"https://api.github.com/users/a3095194/gists{/gist_id}","starred_url":"https://api.github.com/users/a3095194/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3095194/subscriptions","organizations_url":"https://api.github.com/users/a3095194/orgs","repos_url":"https://api.github.com/users/a3095194/repos","events_url":"https://api.github.com/users/a3095194/events{/privacy}","received_events_url":"https://api.github.com/users/a3095194/received_events","type":"User","site_admin":false},"body":"プルリクエストは便利。","created_at":"2016-05-13T10:43:21Z","updated_at":"2016-05-13T10:48:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edc98c50dc9596c653d45119946a5dad77aceba5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/a3095194/algorithm/pulls/1/commits","review_comments_url":"https://api.github.com/repos/a3095194/algorithm/pulls/1/comments","review_comment_url":"https://api.github.com/repos/a3095194/algorithm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/a3095194/algorithm/issues/1/comments","statuses_url":"https://api.github.com/repos/a3095194/algorithm/statuses/161627a7dc29726eee77da00884d638e603c173b","head":{"label":"a3095194:tasks","ref":"tasks","sha":"161627a7dc29726eee77da00884d638e603c173b","user":{"login":"a3095194","id":15305615,"avatar_url":"https://avatars.githubusercontent.com/u/15305615?v=3","gravatar_id":"","url":"https://api.github.com/users/a3095194","html_url":"https://github.com/a3095194","followers_url":"https://api.github.com/users/a3095194/followers","following_url":"https://api.github.com/users/a3095194/following{/other_user}","gists_url":"https://api.github.com/users/a3095194/gists{/gist_id}","starred_url":"https://api.github.com/users/a3095194/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3095194/subscriptions","organizations_url":"https://api.github.com/users/a3095194/orgs","repos_url":"https://api.github.com/users/a3095194/repos","events_url":"https://api.github.com/users/a3095194/events{/privacy}","received_events_url":"https://api.github.com/users/a3095194/received_events","type":"User","site_admin":false},"repo":{"id":44943501,"name":"algorithm","full_name":"a3095194/algorithm","owner":{"login":"a3095194","id":15305615,"avatar_url":"https://avatars.githubusercontent.com/u/15305615?v=3","gravatar_id":"","url":"https://api.github.com/users/a3095194","html_url":"https://github.com/a3095194","followers_url":"https://api.github.com/users/a3095194/followers","following_url":"https://api.github.com/users/a3095194/following{/other_user}","gists_url":"https://api.github.com/users/a3095194/gists{/gist_id}","starred_url":"https://api.github.com/users/a3095194/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3095194/subscriptions","organizations_url":"https://api.github.com/users/a3095194/orgs","repos_url":"https://api.github.com/users/a3095194/repos","events_url":"https://api.github.com/users/a3095194/events{/privacy}","received_events_url":"https://api.github.com/users/a3095194/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a3095194/algorithm","description":"アルゴリズムの課題","fork":false,"url":"https://api.github.com/repos/a3095194/algorithm","forks_url":"https://api.github.com/repos/a3095194/algorithm/forks","keys_url":"https://api.github.com/repos/a3095194/algorithm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a3095194/algorithm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a3095194/algorithm/teams","hooks_url":"https://api.github.com/repos/a3095194/algorithm/hooks","issue_events_url":"https://api.github.com/repos/a3095194/algorithm/issues/events{/number}","events_url":"https://api.github.com/repos/a3095194/algorithm/events","assignees_url":"https://api.github.com/repos/a3095194/algorithm/assignees{/user}","branches_url":"https://api.github.com/repos/a3095194/algorithm/branches{/branch}","tags_url":"https://api.github.com/repos/a3095194/algorithm/tags","blobs_url":"https://api.github.com/repos/a3095194/algorithm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a3095194/algorithm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a3095194/algorithm/git/refs{/sha}","trees_url":"https://api.github.com/repos/a3095194/algorithm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a3095194/algorithm/statuses/{sha}","languages_url":"https://api.github.com/repos/a3095194/algorithm/languages","stargazers_url":"https://api.github.com/repos/a3095194/algorithm/stargazers","contributors_url":"https://api.github.com/repos/a3095194/algorithm/contributors","subscribers_url":"https://api.github.com/repos/a3095194/algorithm/subscribers","subscription_url":"https://api.github.com/repos/a3095194/algorithm/subscription","commits_url":"https://api.github.com/repos/a3095194/algorithm/commits{/sha}","git_commits_url":"https://api.github.com/repos/a3095194/algorithm/git/commits{/sha}","comments_url":"https://api.github.com/repos/a3095194/algorithm/comments{/number}","issue_comment_url":"https://api.github.com/repos/a3095194/algorithm/issues/comments{/number}","contents_url":"https://api.github.com/repos/a3095194/algorithm/contents/{+path}","compare_url":"https://api.github.com/repos/a3095194/algorithm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a3095194/algorithm/merges","archive_url":"https://api.github.com/repos/a3095194/algorithm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a3095194/algorithm/downloads","issues_url":"https://api.github.com/repos/a3095194/algorithm/issues{/number}","pulls_url":"https://api.github.com/repos/a3095194/algorithm/pulls{/number}","milestones_url":"https://api.github.com/repos/a3095194/algorithm/milestones{/number}","notifications_url":"https://api.github.com/repos/a3095194/algorithm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a3095194/algorithm/labels{/name}","releases_url":"https://api.github.com/repos/a3095194/algorithm/releases{/id}","deployments_url":"https://api.github.com/repos/a3095194/algorithm/deployments","created_at":"2015-10-26T03:24:26Z","updated_at":"2016-01-22T07:15:22Z","pushed_at":"2016-05-13T10:43:21Z","git_url":"git://github.com/a3095194/algorithm.git","ssh_url":"git@github.com:a3095194/algorithm.git","clone_url":"https://github.com/a3095194/algorithm.git","svn_url":"https://github.com/a3095194/algorithm","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"a3095194:master","ref":"master","sha":"286d4cf9122a695a561102fa4ca6bed0b9b70c79","user":{"login":"a3095194","id":15305615,"avatar_url":"https://avatars.githubusercontent.com/u/15305615?v=3","gravatar_id":"","url":"https://api.github.com/users/a3095194","html_url":"https://github.com/a3095194","followers_url":"https://api.github.com/users/a3095194/followers","following_url":"https://api.github.com/users/a3095194/following{/other_user}","gists_url":"https://api.github.com/users/a3095194/gists{/gist_id}","starred_url":"https://api.github.com/users/a3095194/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3095194/subscriptions","organizations_url":"https://api.github.com/users/a3095194/orgs","repos_url":"https://api.github.com/users/a3095194/repos","events_url":"https://api.github.com/users/a3095194/events{/privacy}","received_events_url":"https://api.github.com/users/a3095194/received_events","type":"User","site_admin":false},"repo":{"id":44943501,"name":"algorithm","full_name":"a3095194/algorithm","owner":{"login":"a3095194","id":15305615,"avatar_url":"https://avatars.githubusercontent.com/u/15305615?v=3","gravatar_id":"","url":"https://api.github.com/users/a3095194","html_url":"https://github.com/a3095194","followers_url":"https://api.github.com/users/a3095194/followers","following_url":"https://api.github.com/users/a3095194/following{/other_user}","gists_url":"https://api.github.com/users/a3095194/gists{/gist_id}","starred_url":"https://api.github.com/users/a3095194/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a3095194/subscriptions","organizations_url":"https://api.github.com/users/a3095194/orgs","repos_url":"https://api.github.com/users/a3095194/repos","events_url":"https://api.github.com/users/a3095194/events{/privacy}","received_events_url":"https://api.github.com/users/a3095194/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a3095194/algorithm","description":"アルゴリズムの課題","fork":false,"url":"https://api.github.com/repos/a3095194/algorithm","forks_url":"https://api.github.com/repos/a3095194/algorithm/forks","keys_url":"https://api.github.com/repos/a3095194/algorithm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a3095194/algorithm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a3095194/algorithm/teams","hooks_url":"https://api.github.com/repos/a3095194/algorithm/hooks","issue_events_url":"https://api.github.com/repos/a3095194/algorithm/issues/events{/number}","events_url":"https://api.github.com/repos/a3095194/algorithm/events","assignees_url":"https://api.github.com/repos/a3095194/algorithm/assignees{/user}","branches_url":"https://api.github.com/repos/a3095194/algorithm/branches{/branch}","tags_url":"https://api.github.com/repos/a3095194/algorithm/tags","blobs_url":"https://api.github.com/repos/a3095194/algorithm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a3095194/algorithm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a3095194/algorithm/git/refs{/sha}","trees_url":"https://api.github.com/repos/a3095194/algorithm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a3095194/algorithm/statuses/{sha}","languages_url":"https://api.github.com/repos/a3095194/algorithm/languages","stargazers_url":"https://api.github.com/repos/a3095194/algorithm/stargazers","contributors_url":"https://api.github.com/repos/a3095194/algorithm/contributors","subscribers_url":"https://api.github.com/repos/a3095194/algorithm/subscribers","subscription_url":"https://api.github.com/repos/a3095194/algorithm/subscription","commits_url":"https://api.github.com/repos/a3095194/algorithm/commits{/sha}","git_commits_url":"https://api.github.com/repos/a3095194/algorithm/git/commits{/sha}","comments_url":"https://api.github.com/repos/a3095194/algorithm/comments{/number}","issue_comment_url":"https://api.github.com/repos/a3095194/algorithm/issues/comments{/number}","contents_url":"https://api.github.com/repos/a3095194/algorithm/contents/{+path}","compare_url":"https://api.github.com/repos/a3095194/algorithm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a3095194/algorithm/merges","archive_url":"https://api.github.com/repos/a3095194/algorithm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a3095194/algorithm/downloads","issues_url":"https://api.github.com/repos/a3095194/algorithm/issues{/number}","pulls_url":"https://api.github.com/repos/a3095194/algorithm/pulls{/number}","milestones_url":"https://api.github.com/repos/a3095194/algorithm/milestones{/number}","notifications_url":"https://api.github.com/repos/a3095194/algorithm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a3095194/algorithm/labels{/name}","releases_url":"https://api.github.com/repos/a3095194/algorithm/releases{/id}","deployments_url":"https://api.github.com/repos/a3095194/algorithm/deployments","created_at":"2015-10-26T03:24:26Z","updated_at":"2016-01-22T07:15:22Z","pushed_at":"2016-05-13T10:43:21Z","git_url":"git://github.com/a3095194/algorithm.git","ssh_url":"git@github.com:a3095194/algorithm.git","clone_url":"https://github.com/a3095194/algorithm.git","svn_url":"https://github.com/a3095194/algorithm","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/a3095194/algorithm/pulls/1"},"html":{"href":"https://github.com/a3095194/algorithm/pull/1"},"issue":{"href":"https://api.github.com/repos/a3095194/algorithm/issues/1"},"comments":{"href":"https://api.github.com/repos/a3095194/algorithm/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/a3095194/algorithm/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/a3095194/algorithm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/a3095194/algorithm/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/a3095194/algorithm/statuses/161627a7dc29726eee77da00884d638e603c173b"}}}}