{"action":"created","comment":{"url":"https://api.github.com/repos/hsp-harut/seua/pulls/comments/216959731","pull_request_review_id":154538828,"id":216959731,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjk1OTczMQ==","diff_hunk":"@@ -0,0 +1,69 @@\n+package main.java.am.hsp.apps.seua.tasks321_350;\n+\n+import main.java.am.hsp.apps.seua.base.TaskArrayBase;\n+\n+/**\n+ * Print the minimum value of those elements, which indexes divided by the given\n+ * divisor, will remain the given remainder.\n+ * \n+ * @author user\n+ *\n+ */\n+public class Task_340 extends TaskArrayBase {\n+\tprivate static final int DIVISOR = 5;\n+\tprivate static final int REMAINDER = 2;\n+\n+\tpublic static void main(String[] args) {\n+\t\tTask_340 task = new Task_340();\n+\t\ttask.solve();\n+\t}\n+\n+\t/*\n+\t * (non-Javadoc)\n+\t * \n+\t * @see main.java.am.hsp.apps.seua.base.TaskBase#solve()\n+\t */\n+\tpublic void solve() {\n+\t\tint[] array = getUserIntArrayInput(\"Please enter the array length: \", \"Please enter the start of the range: \",\n+\t\t\t\t\"Please enter the end of the range: \");\n+\n+\t\tSystem.out.print(\"\\nThe array is: \");\n+\t\tprintIntArray(array);\n+\n+\t\tprintRequiredMinValue(array, DIVISOR, REMAINDER);\n+\t}\n+\n+\t/**\n+\t * Returns the minimum value of those elements, which indexes divided by the\n+\t * given divisor, will remain the given remainder.\n+\t * \n+\t * @param array\n+\t * @return\n+\t */\n+\tprivate void printRequiredMinValue(int[] array, int divisor, int remainder) {\n+\t\tif (isArrayLengthLessThanRequired(array, remainder)) {\n+\t\t\tSystem.out.println(\"\\nThe array length isn't enough to find the required value.\");\n+\t\t\treturn;\n+\t\t}\n+\n+\t\tint minValue = array[remainder];\n+\n+\t\tfor (int i = (remainder + divisor); i < array.length; i += divisor) {","path":"src/main/java/am/hsp/apps/seua/tasks321_350/Task_340.java","position":51,"original_position":51,"commit_id":"0093f499e92b92fd9cc9bad52c052d300f5425a1","original_commit_id":"0093f499e92b92fd9cc9bad52c052d300f5425a1","user":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"body":"hmm... but why? You implemented a lot of tasks and you always have your methods as cohesive!\r\nBut now in this method you are a) validating and printing validation message to user b) calculating required min value c) printing it to user.","created_at":"2018-09-12T09:29:13Z","updated_at":"2018-09-12T09:49:49Z","html_url":"https://github.com/hsp-harut/seua/pull/142#discussion_r216959731","pull_request_url":"https://api.github.com/repos/hsp-harut/seua/pulls/142","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/hsp-harut/seua/pulls/comments/216959731"},"html":{"href":"https://github.com/hsp-harut/seua/pull/142#discussion_r216959731"},"pull_request":{"href":"https://api.github.com/repos/hsp-harut/seua/pulls/142"}}},"pull_request":{"url":"https://api.github.com/repos/hsp-harut/seua/pulls/142","id":214578595,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0NTc4NTk1","html_url":"https://github.com/hsp-harut/seua/pull/142","diff_url":"https://github.com/hsp-harut/seua/pull/142.diff","patch_url":"https://github.com/hsp-harut/seua/pull/142.patch","issue_url":"https://api.github.com/repos/hsp-harut/seua/issues/142","number":142,"state":"open","locked":false,"title":"Hripsime: Tasks 321-350","user":{"login":"hsp-hripsime","id":40883819,"node_id":"MDQ6VXNlcjQwODgzODE5","avatar_url":"https://avatars3.githubusercontent.com/u/40883819?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-hripsime","html_url":"https://github.com/hsp-hripsime","followers_url":"https://api.github.com/users/hsp-hripsime/followers","following_url":"https://api.github.com/users/hsp-hripsime/following{/other_user}","gists_url":"https://api.github.com/users/hsp-hripsime/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-hripsime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-hripsime/subscriptions","organizations_url":"https://api.github.com/users/hsp-hripsime/orgs","repos_url":"https://api.github.com/users/hsp-hripsime/repos","events_url":"https://api.github.com/users/hsp-hripsime/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-hripsime/received_events","type":"User","site_admin":false},"body":"In the right hand side are tasks chosen from the range.\r\n(321 - 330) --> 326, 328, 329\r\n(331 - 340) --> 334, 335, 337, 340\r\n(341 - 350) --> 341, 344, 350","created_at":"2018-09-11T10:03:17Z","updated_at":"2018-09-12T09:49:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"952e1a289b6dd01327aa322f4730878f28fcddb5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hsp-harut/seua/pulls/142/commits","review_comments_url":"https://api.github.com/repos/hsp-harut/seua/pulls/142/comments","review_comment_url":"https://api.github.com/repos/hsp-harut/seua/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hsp-harut/seua/issues/142/comments","statuses_url":"https://api.github.com/repos/hsp-harut/seua/statuses/0093f499e92b92fd9cc9bad52c052d300f5425a1","head":{"label":"hsp-harut:HV_Tasks_321-350","ref":"HV_Tasks_321-350","sha":"0093f499e92b92fd9cc9bad52c052d300f5425a1","user":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"repo":{"id":113083592,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMwODM1OTI=","name":"seua","full_name":"hsp-harut/seua","owner":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hsp-harut/seua","description":null,"fork":false,"url":"https://api.github.com/repos/hsp-harut/seua","forks_url":"https://api.github.com/repos/hsp-harut/seua/forks","keys_url":"https://api.github.com/repos/hsp-harut/seua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsp-harut/seua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsp-harut/seua/teams","hooks_url":"https://api.github.com/repos/hsp-harut/seua/hooks","issue_events_url":"https://api.github.com/repos/hsp-harut/seua/issues/events{/number}","events_url":"https://api.github.com/repos/hsp-harut/seua/events","assignees_url":"https://api.github.com/repos/hsp-harut/seua/assignees{/user}","branches_url":"https://api.github.com/repos/hsp-harut/seua/branches{/branch}","tags_url":"https://api.github.com/repos/hsp-harut/seua/tags","blobs_url":"https://api.github.com/repos/hsp-harut/seua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsp-harut/seua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsp-harut/seua/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsp-harut/seua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsp-harut/seua/statuses/{sha}","languages_url":"https://api.github.com/repos/hsp-harut/seua/languages","stargazers_url":"https://api.github.com/repos/hsp-harut/seua/stargazers","contributors_url":"https://api.github.com/repos/hsp-harut/seua/contributors","subscribers_url":"https://api.github.com/repos/hsp-harut/seua/subscribers","subscription_url":"https://api.github.com/repos/hsp-harut/seua/subscription","commits_url":"https://api.github.com/repos/hsp-harut/seua/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsp-harut/seua/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsp-harut/seua/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsp-harut/seua/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsp-harut/seua/contents/{+path}","compare_url":"https://api.github.com/repos/hsp-harut/seua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsp-harut/seua/merges","archive_url":"https://api.github.com/repos/hsp-harut/seua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsp-harut/seua/downloads","issues_url":"https://api.github.com/repos/hsp-harut/seua/issues{/number}","pulls_url":"https://api.github.com/repos/hsp-harut/seua/pulls{/number}","milestones_url":"https://api.github.com/repos/hsp-harut/seua/milestones{/number}","notifications_url":"https://api.github.com/repos/hsp-harut/seua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsp-harut/seua/labels{/name}","releases_url":"https://api.github.com/repos/hsp-harut/seua/releases{/id}","deployments_url":"https://api.github.com/repos/hsp-harut/seua/deployments","created_at":"2017-12-04T19:10:06Z","updated_at":"2018-07-06T07:57:40Z","pushed_at":"2018-09-11T19:20:50Z","git_url":"git://github.com/hsp-harut/seua.git","ssh_url":"git@github.com:hsp-harut/seua.git","clone_url":"https://github.com/hsp-harut/seua.git","svn_url":"https://github.com/hsp-harut/seua","homepage":null,"size":1477,"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":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"hsp-harut:master_hripsime","ref":"master_hripsime","sha":"41484313a7cf744ce189fe8f506a03d841c7665f","user":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"repo":{"id":113083592,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMwODM1OTI=","name":"seua","full_name":"hsp-harut/seua","owner":{"login":"hsp-harut","id":34002792,"node_id":"MDQ6VXNlcjM0MDAyNzky","avatar_url":"https://avatars1.githubusercontent.com/u/34002792?v=4","gravatar_id":"","url":"https://api.github.com/users/hsp-harut","html_url":"https://github.com/hsp-harut","followers_url":"https://api.github.com/users/hsp-harut/followers","following_url":"https://api.github.com/users/hsp-harut/following{/other_user}","gists_url":"https://api.github.com/users/hsp-harut/gists{/gist_id}","starred_url":"https://api.github.com/users/hsp-harut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsp-harut/subscriptions","organizations_url":"https://api.github.com/users/hsp-harut/orgs","repos_url":"https://api.github.com/users/hsp-harut/repos","events_url":"https://api.github.com/users/hsp-harut/events{/privacy}","received_events_url":"https://api.github.com/users/hsp-harut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hsp-harut/seua","description":null,"fork":false,"url":"https://api.github.com/repos/hsp-harut/seua","forks_url":"https://api.github.com/repos/hsp-harut/seua/forks","keys_url":"https://api.github.com/repos/hsp-harut/seua/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsp-harut/seua/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsp-harut/seua/teams","hooks_url":"https://api.github.com/repos/hsp-harut/seua/hooks","issue_events_url":"https://api.github.com/repos/hsp-harut/seua/issues/events{/number}","events_url":"https://api.github.com/repos/hsp-harut/seua/events","assignees_url":"https://api.github.com/repos/hsp-harut/seua/assignees{/user}","branches_url":"https://api.github.com/repos/hsp-harut/seua/branches{/branch}","tags_url":"https://api.github.com/repos/hsp-harut/seua/tags","blobs_url":"https://api.github.com/repos/hsp-harut/seua/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsp-harut/seua/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsp-harut/seua/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsp-harut/seua/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsp-harut/seua/statuses/{sha}","languages_url":"https://api.github.com/repos/hsp-harut/seua/languages","stargazers_url":"https://api.github.com/repos/hsp-harut/seua/stargazers","contributors_url":"https://api.github.com/repos/hsp-harut/seua/contributors","subscribers_url":"https://api.github.com/repos/hsp-harut/seua/subscribers","subscription_url":"https://api.github.com/repos/hsp-harut/seua/subscription","commits_url":"https://api.github.com/repos/hsp-harut/seua/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsp-harut/seua/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsp-harut/seua/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsp-harut/seua/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsp-harut/seua/contents/{+path}","compare_url":"https://api.github.com/repos/hsp-harut/seua/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsp-harut/seua/merges","archive_url":"https://api.github.com/repos/hsp-harut/seua/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsp-harut/seua/downloads","issues_url":"https://api.github.com/repos/hsp-harut/seua/issues{/number}","pulls_url":"https://api.github.com/repos/hsp-harut/seua/pulls{/number}","milestones_url":"https://api.github.com/repos/hsp-harut/seua/milestones{/number}","notifications_url":"https://api.github.com/repos/hsp-harut/seua/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsp-harut/seua/labels{/name}","releases_url":"https://api.github.com/repos/hsp-harut/seua/releases{/id}","deployments_url":"https://api.github.com/repos/hsp-harut/seua/deployments","created_at":"2017-12-04T19:10:06Z","updated_at":"2018-07-06T07:57:40Z","pushed_at":"2018-09-11T19:20:50Z","git_url":"git://github.com/hsp-harut/seua.git","ssh_url":"git@github.com:hsp-harut/seua.git","clone_url":"https://github.com/hsp-harut/seua.git","svn_url":"https://github.com/hsp-harut/seua","homepage":null,"size":1477,"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":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hsp-harut/seua/pulls/142"},"html":{"href":"https://github.com/hsp-harut/seua/pull/142"},"issue":{"href":"https://api.github.com/repos/hsp-harut/seua/issues/142"},"comments":{"href":"https://api.github.com/repos/hsp-harut/seua/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/hsp-harut/seua/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/hsp-harut/seua/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hsp-harut/seua/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/hsp-harut/seua/statuses/0093f499e92b92fd9cc9bad52c052d300f5425a1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"hsp-harut"}}