{"action":"created","comment":{"url":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/comments/91839400","pull_request_review_id":12351930,"id":91839400,"diff_hunk":"@@ -0,0 +1,184 @@\n+package day.two.practice;\n+\n+import java.util.ArrayList;\n+\n+public class GitHubHome {\n+\n+\tpublic static void main(String[] args) {\n+\n+\t\tSystem.out.println(getEvenList(21));\n+\n+\t\tSystem.out.println(getOddList(18));\n+\n+\t\tSystem.out.println(getKilo(10));\n+\n+\t\tSystem.out.println(getSameText(\"This is a String\"));\n+\n+\t\tSystem.out.println(getLowerText(\"HOW ARE YOU?\"));\n+\n+\t\tString text = \"Selenium practice at home\";\n+\t\tSystem.out.println(getIndexList(text));\n+\n+\t\tSystem.out.println(getCharactersList(text));\n+\n+\t\tSystem.out.println(getSum(20));\n+\n+\t\tSystem.out.println(getSquare(20));\n+\n+\t\tSystem.out.println(getArray(13));\n+\n+\t}\n+\n+\t/**\n+\t * Mhd # 11. Write a method that take one number input and return an Array\n+\t * that contains 0 to given number.\n+\t */\n+\n+\tpublic static int[] getArray(int number) {\n+\t\tint[] newArray = new int[number + 1];\n+\n+\t\tfor (int i = 0; i <= number; i++) {\n+\n+\t\t\tnewArray[i] = i;\n+\t\t}\n+\n+\t\treturn newArray;\n+\t}\n+\n+\t/**\n+\t * Mhd # 10. Write a method that take one number input and return square of\n+\t * the given number.\n+\t */\n+\n+\tpublic static int getSquare(int number) {\n+\t\tint square = 0;\n+\n+\t\tsquare = number * number;\n+\n+\t\treturn square;\n+\t}\n+\n+\t/**\n+\t * Mhd # 09. Write a method that take one number input & return the sum of 1\n+\t * to that given number.\n+\t */\n+\n+\tpublic static int getSum(int number) {\n+\t\tint sum = 0;\n+\n+\t\tfor (int i = 1; i <= number; i++) {\n+\n+\t\t\tsum = sum + i;\n+\t\t}\n+\n+\t\treturn sum;\n+\t}\n+\n+\t/**\n+\t * Mhd # 08. Write a method that take one String input and return a list of\n+\t * all characters.\n+\t */\n+\n+\tpublic static ArrayList<Character> getCharactersList(String text) {\n+\t\tArrayList<Character> charactersList = new ArrayList<Character>();\n+\n+\t\tfor (int i = 0; i < text.length(); i++) {\n+\n+\t\t\tcharactersList.add(text.charAt(i));\n+\t\t}\n+\n+\t\treturn charactersList;\n+\t}\n+\n+\t/**\n+\t * Write a method that take one String input and return a list of all index.\n+\t */\n+\n+\tpublic static ArrayList<Integer> getIndexList(String text) {\n+\t\tArrayList<Integer> indexList = new ArrayList<Integer>();\n+\n+\t\tfor (int i = 0; i < text.length(); i++) {\n+\n+\t\t\tindexList.add(i);\n+\t\t}\n+\n+\t\treturn indexList;\n+\t}\n+\n+\t/**\n+\t * Write a method that take one String input and return same String in\n+\t * lowerCase.\n+\t */\n+\n+\tpublic static String getLowerText(String text) {\n+\t\tString lowerText = \"\";\n+\n+\t\tlowerText = text.toLowerCase();\n+\n+\t\treturn lowerText;\n+\t}\n+\n+\t/**\n+\t * Write a method that take one String input and return same String in\n+\t * upperCase.\n+\t */\n+\n+\tpublic static String getSameText(String text) {\n+\t\tString sameText = \"\";\n+\n+\t\tsameText = text.toUpperCase();\n+\n+\t\treturn sameText;\n+\t}\n+\n+\t/**\n+\t * Write a method that take input as mile and return as kilometer.\n+\t */\n+\n+\tpublic static double getKilo(int number) {\n+\t\tdouble kilo = 0;\n+","path":"src/day/two/practice/GitHubHome.java","position":140,"original_position":140,"commit_id":"b044f5c70f43a90f6e1c5ab1c0927fe5b2eeacaf","original_commit_id":"b044f5c70f43a90f6e1c5ab1c0927fe5b2eeacaf","user":{"login":"mkhan004","id":9956973,"avatar_url":"https://avatars.githubusercontent.com/u/9956973?v=3","gravatar_id":"","url":"https://api.github.com/users/mkhan004","html_url":"https://github.com/mkhan004","followers_url":"https://api.github.com/users/mkhan004/followers","following_url":"https://api.github.com/users/mkhan004/following{/other_user}","gists_url":"https://api.github.com/users/mkhan004/gists{/gist_id}","starred_url":"https://api.github.com/users/mkhan004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkhan004/subscriptions","organizations_url":"https://api.github.com/users/mkhan004/orgs","repos_url":"https://api.github.com/users/mkhan004/repos","events_url":"https://api.github.com/users/mkhan004/events{/privacy}","received_events_url":"https://api.github.com/users/mkhan004/received_events","type":"User","site_admin":false},"body":"remove this white space","created_at":"2016-12-10T18:03:19Z","updated_at":"2016-12-10T18:03:19Z","html_url":"https://github.com/rokibulj/JavaExercise/pull/1#discussion_r91839400","pull_request_url":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/comments/91839400"},"html":{"href":"https://github.com/rokibulj/JavaExercise/pull/1#discussion_r91839400"},"pull_request":{"href":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/1","id":97432082,"html_url":"https://github.com/rokibulj/JavaExercise/pull/1","diff_url":"https://github.com/rokibulj/JavaExercise/pull/1.diff","patch_url":"https://github.com/rokibulj/JavaExercise/pull/1.patch","issue_url":"https://api.github.com/repos/rokibulj/JavaExercise/issues/1","number":1,"state":"open","locked":false,"title":"Total eleven exercise add ","user":{"login":"rokibulj","id":23153108,"avatar_url":"https://avatars.githubusercontent.com/u/23153108?v=3","gravatar_id":"","url":"https://api.github.com/users/rokibulj","html_url":"https://github.com/rokibulj","followers_url":"https://api.github.com/users/rokibulj/followers","following_url":"https://api.github.com/users/rokibulj/following{/other_user}","gists_url":"https://api.github.com/users/rokibulj/gists{/gist_id}","starred_url":"https://api.github.com/users/rokibulj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokibulj/subscriptions","organizations_url":"https://api.github.com/users/rokibulj/orgs","repos_url":"https://api.github.com/users/rokibulj/repos","events_url":"https://api.github.com/users/rokibulj/events{/privacy}","received_events_url":"https://api.github.com/users/rokibulj/received_events","type":"User","site_admin":false},"body":"Last week(Dec 5-9) I was added (1-11) method as exercise. \r\n","created_at":"2016-12-10T17:40:23Z","updated_at":"2016-12-10T18:03:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"860be91483ad79bc5c297bae6589377b921f3600","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rokibulj/JavaExercise/issues/1/comments","statuses_url":"https://api.github.com/repos/rokibulj/JavaExercise/statuses/b044f5c70f43a90f6e1c5ab1c0927fe5b2eeacaf","head":{"label":"rokibulj:feature/java-method-practice","ref":"feature/java-method-practice","sha":"b044f5c70f43a90f6e1c5ab1c0927fe5b2eeacaf","user":{"login":"rokibulj","id":23153108,"avatar_url":"https://avatars.githubusercontent.com/u/23153108?v=3","gravatar_id":"","url":"https://api.github.com/users/rokibulj","html_url":"https://github.com/rokibulj","followers_url":"https://api.github.com/users/rokibulj/followers","following_url":"https://api.github.com/users/rokibulj/following{/other_user}","gists_url":"https://api.github.com/users/rokibulj/gists{/gist_id}","starred_url":"https://api.github.com/users/rokibulj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokibulj/subscriptions","organizations_url":"https://api.github.com/users/rokibulj/orgs","repos_url":"https://api.github.com/users/rokibulj/repos","events_url":"https://api.github.com/users/rokibulj/events{/privacy}","received_events_url":"https://api.github.com/users/rokibulj/received_events","type":"User","site_admin":false},"repo":{"id":75498632,"name":"JavaExercise","full_name":"rokibulj/JavaExercise","owner":{"login":"rokibulj","id":23153108,"avatar_url":"https://avatars.githubusercontent.com/u/23153108?v=3","gravatar_id":"","url":"https://api.github.com/users/rokibulj","html_url":"https://github.com/rokibulj","followers_url":"https://api.github.com/users/rokibulj/followers","following_url":"https://api.github.com/users/rokibulj/following{/other_user}","gists_url":"https://api.github.com/users/rokibulj/gists{/gist_id}","starred_url":"https://api.github.com/users/rokibulj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokibulj/subscriptions","organizations_url":"https://api.github.com/users/rokibulj/orgs","repos_url":"https://api.github.com/users/rokibulj/repos","events_url":"https://api.github.com/users/rokibulj/events{/privacy}","received_events_url":"https://api.github.com/users/rokibulj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rokibulj/JavaExercise","description":null,"fork":false,"url":"https://api.github.com/repos/rokibulj/JavaExercise","forks_url":"https://api.github.com/repos/rokibulj/JavaExercise/forks","keys_url":"https://api.github.com/repos/rokibulj/JavaExercise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rokibulj/JavaExercise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rokibulj/JavaExercise/teams","hooks_url":"https://api.github.com/repos/rokibulj/JavaExercise/hooks","issue_events_url":"https://api.github.com/repos/rokibulj/JavaExercise/issues/events{/number}","events_url":"https://api.github.com/repos/rokibulj/JavaExercise/events","assignees_url":"https://api.github.com/repos/rokibulj/JavaExercise/assignees{/user}","branches_url":"https://api.github.com/repos/rokibulj/JavaExercise/branches{/branch}","tags_url":"https://api.github.com/repos/rokibulj/JavaExercise/tags","blobs_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/refs{/sha}","trees_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rokibulj/JavaExercise/statuses/{sha}","languages_url":"https://api.github.com/repos/rokibulj/JavaExercise/languages","stargazers_url":"https://api.github.com/repos/rokibulj/JavaExercise/stargazers","contributors_url":"https://api.github.com/repos/rokibulj/JavaExercise/contributors","subscribers_url":"https://api.github.com/repos/rokibulj/JavaExercise/subscribers","subscription_url":"https://api.github.com/repos/rokibulj/JavaExercise/subscription","commits_url":"https://api.github.com/repos/rokibulj/JavaExercise/commits{/sha}","git_commits_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/commits{/sha}","comments_url":"https://api.github.com/repos/rokibulj/JavaExercise/comments{/number}","issue_comment_url":"https://api.github.com/repos/rokibulj/JavaExercise/issues/comments{/number}","contents_url":"https://api.github.com/repos/rokibulj/JavaExercise/contents/{+path}","compare_url":"https://api.github.com/repos/rokibulj/JavaExercise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rokibulj/JavaExercise/merges","archive_url":"https://api.github.com/repos/rokibulj/JavaExercise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rokibulj/JavaExercise/downloads","issues_url":"https://api.github.com/repos/rokibulj/JavaExercise/issues{/number}","pulls_url":"https://api.github.com/repos/rokibulj/JavaExercise/pulls{/number}","milestones_url":"https://api.github.com/repos/rokibulj/JavaExercise/milestones{/number}","notifications_url":"https://api.github.com/repos/rokibulj/JavaExercise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rokibulj/JavaExercise/labels{/name}","releases_url":"https://api.github.com/repos/rokibulj/JavaExercise/releases{/id}","deployments_url":"https://api.github.com/repos/rokibulj/JavaExercise/deployments","created_at":"2016-12-03T20:31:43Z","updated_at":"2016-12-03T22:00:26Z","pushed_at":"2016-12-10T17:40:23Z","git_url":"git://github.com/rokibulj/JavaExercise.git","ssh_url":"git@github.com:rokibulj/JavaExercise.git","clone_url":"https://github.com/rokibulj/JavaExercise.git","svn_url":"https://github.com/rokibulj/JavaExercise","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"rokibulj:develop","ref":"develop","sha":"d9df601c71866f9bfe4fb954aa6931ace93a4cd3","user":{"login":"rokibulj","id":23153108,"avatar_url":"https://avatars.githubusercontent.com/u/23153108?v=3","gravatar_id":"","url":"https://api.github.com/users/rokibulj","html_url":"https://github.com/rokibulj","followers_url":"https://api.github.com/users/rokibulj/followers","following_url":"https://api.github.com/users/rokibulj/following{/other_user}","gists_url":"https://api.github.com/users/rokibulj/gists{/gist_id}","starred_url":"https://api.github.com/users/rokibulj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokibulj/subscriptions","organizations_url":"https://api.github.com/users/rokibulj/orgs","repos_url":"https://api.github.com/users/rokibulj/repos","events_url":"https://api.github.com/users/rokibulj/events{/privacy}","received_events_url":"https://api.github.com/users/rokibulj/received_events","type":"User","site_admin":false},"repo":{"id":75498632,"name":"JavaExercise","full_name":"rokibulj/JavaExercise","owner":{"login":"rokibulj","id":23153108,"avatar_url":"https://avatars.githubusercontent.com/u/23153108?v=3","gravatar_id":"","url":"https://api.github.com/users/rokibulj","html_url":"https://github.com/rokibulj","followers_url":"https://api.github.com/users/rokibulj/followers","following_url":"https://api.github.com/users/rokibulj/following{/other_user}","gists_url":"https://api.github.com/users/rokibulj/gists{/gist_id}","starred_url":"https://api.github.com/users/rokibulj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rokibulj/subscriptions","organizations_url":"https://api.github.com/users/rokibulj/orgs","repos_url":"https://api.github.com/users/rokibulj/repos","events_url":"https://api.github.com/users/rokibulj/events{/privacy}","received_events_url":"https://api.github.com/users/rokibulj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rokibulj/JavaExercise","description":null,"fork":false,"url":"https://api.github.com/repos/rokibulj/JavaExercise","forks_url":"https://api.github.com/repos/rokibulj/JavaExercise/forks","keys_url":"https://api.github.com/repos/rokibulj/JavaExercise/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rokibulj/JavaExercise/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rokibulj/JavaExercise/teams","hooks_url":"https://api.github.com/repos/rokibulj/JavaExercise/hooks","issue_events_url":"https://api.github.com/repos/rokibulj/JavaExercise/issues/events{/number}","events_url":"https://api.github.com/repos/rokibulj/JavaExercise/events","assignees_url":"https://api.github.com/repos/rokibulj/JavaExercise/assignees{/user}","branches_url":"https://api.github.com/repos/rokibulj/JavaExercise/branches{/branch}","tags_url":"https://api.github.com/repos/rokibulj/JavaExercise/tags","blobs_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/refs{/sha}","trees_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rokibulj/JavaExercise/statuses/{sha}","languages_url":"https://api.github.com/repos/rokibulj/JavaExercise/languages","stargazers_url":"https://api.github.com/repos/rokibulj/JavaExercise/stargazers","contributors_url":"https://api.github.com/repos/rokibulj/JavaExercise/contributors","subscribers_url":"https://api.github.com/repos/rokibulj/JavaExercise/subscribers","subscription_url":"https://api.github.com/repos/rokibulj/JavaExercise/subscription","commits_url":"https://api.github.com/repos/rokibulj/JavaExercise/commits{/sha}","git_commits_url":"https://api.github.com/repos/rokibulj/JavaExercise/git/commits{/sha}","comments_url":"https://api.github.com/repos/rokibulj/JavaExercise/comments{/number}","issue_comment_url":"https://api.github.com/repos/rokibulj/JavaExercise/issues/comments{/number}","contents_url":"https://api.github.com/repos/rokibulj/JavaExercise/contents/{+path}","compare_url":"https://api.github.com/repos/rokibulj/JavaExercise/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rokibulj/JavaExercise/merges","archive_url":"https://api.github.com/repos/rokibulj/JavaExercise/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rokibulj/JavaExercise/downloads","issues_url":"https://api.github.com/repos/rokibulj/JavaExercise/issues{/number}","pulls_url":"https://api.github.com/repos/rokibulj/JavaExercise/pulls{/number}","milestones_url":"https://api.github.com/repos/rokibulj/JavaExercise/milestones{/number}","notifications_url":"https://api.github.com/repos/rokibulj/JavaExercise/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rokibulj/JavaExercise/labels{/name}","releases_url":"https://api.github.com/repos/rokibulj/JavaExercise/releases{/id}","deployments_url":"https://api.github.com/repos/rokibulj/JavaExercise/deployments","created_at":"2016-12-03T20:31:43Z","updated_at":"2016-12-03T22:00:26Z","pushed_at":"2016-12-10T17:40:23Z","git_url":"git://github.com/rokibulj/JavaExercise.git","ssh_url":"git@github.com:rokibulj/JavaExercise.git","clone_url":"https://github.com/rokibulj/JavaExercise.git","svn_url":"https://github.com/rokibulj/JavaExercise","homepage":null,"size":10,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/1"},"html":{"href":"https://github.com/rokibulj/JavaExercise/pull/1"},"issue":{"href":"https://api.github.com/repos/rokibulj/JavaExercise/issues/1"},"comments":{"href":"https://api.github.com/repos/rokibulj/JavaExercise/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rokibulj/JavaExercise/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rokibulj/JavaExercise/statuses/b044f5c70f43a90f6e1c5ab1c0927fe5b2eeacaf"}}}}
{"actor":{"display_login":"mkhan004"}}