{"action":"created","comment":{"url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/comments/40106327","id":40106327,"diff_hunk":"@@ -0,0 +1,124 @@\n+package assignment4;\n+\n+import java.util.Scanner;\n+\n+/**\n+ *\n+ * @author Adam\n+ */\n+public class Assignment4 {\n+\n+    /**\n+     * @param args the command line arguments\n+     */\n+    public static void main(String[] args) {\n+              \n+        Scanner keyboard = new Scanner(System.in);\n+        int menuChoice;\n+        int quit; \n+        \n+        do{ //menu loop\n+            print(\"Select an option from the list below.\");\n+            print(\n+                      \"1. Author\\n\"\n+                    + \"2. Class\\n\"\n+                    + \"3. School\\n\"\n+                    + \"4. Date\\n\"\n+                    + \"5. Word Counter\\n\"\n+                    + \"6. Exit\");\n+            menuChoice = keyboard.nextInt();\n+            \n+            while(menuChoice < 1 || menuChoice > 6){ // test menuChoice range\n+                print(\"**Please enter a valid menu selection (1-6)**\");\n+                print(\"Select an option from the list below.\");\n+            print(\n+                      \"1. Author\\n\"\n+                    + \"2. Class\\n\"\n+                    + \"3. School\\n\"\n+                    + \"4. Date\\n\"\n+                    + \"5. Word Counter\\n\"\n+                    + \"6. Exit\");\n+            menuChoice = keyboard.nextInt();\n+            } // end while loop\n+            \n+            switch(menuChoice){\n+                case 1:{ // name\n+                    getAuthor();\n+                    break;\n+                }\n+                case 2:{ // class\n+                    getClassName();\n+                    break;\n+                }\n+                case 3:{ // school\n+                    getCollegeName();\n+                    break;\n+                }\n+                case 4:{ // date\n+                    getUpdateDate();\n+                    break;\n+                }\n+                case 5:{ // word counter\n+                    getWordCounter();\n+                    break;\n+                } // case5\n+            } // end switch\n+        if(menuChoice != 6){\n+            print(\"Enter 6 if you wish to quit or another number\"\n+                + \" to continue: \");\n+            quit = keyboard.nextInt();\n+            if(quit == 6){\n+                menuChoice = 6;\n+            } //quit if\n+        } // not 6 if\n+        }while(menuChoice != 6); // end menu loop\n+    }\n+    /**\n+     * shortcut for println\n+     * @param message = words to print\n+     */\n+    public static void print(String message){\n+        System.out.println(message);\n+    }\n+    \n+    /**\n+     * gets author of program\n+     */\n+    public static void getAuthor(){","path":"Assignment4.java","position":87,"original_position":87,"commit_id":"8fee23b76a4a3d4e2924f3f8584dad37cee7d6b2","original_commit_id":"8fee23b76a4a3d4e2924f3f8584dad37cee7d6b2","user":{"login":"ninjapanzer","id":159591,"avatar_url":"https://avatars.githubusercontent.com/u/159591?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjapanzer","html_url":"https://github.com/ninjapanzer","followers_url":"https://api.github.com/users/ninjapanzer/followers","following_url":"https://api.github.com/users/ninjapanzer/following{/other_user}","gists_url":"https://api.github.com/users/ninjapanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapanzer/subscriptions","organizations_url":"https://api.github.com/users/ninjapanzer/orgs","repos_url":"https://api.github.com/users/ninjapanzer/repos","events_url":"https://api.github.com/users/ninjapanzer/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapanzer/received_events","type":"User","site_admin":false},"body":"Get usually identifies that the function will return something. Since this is a `void` return type this is a little bit of a misnomer. To keep it as get I might consider doing\r\n\r\n```java\r\npublic static String getAuthor(){\r\n  return \"1. Author: Adam King\"\r\n}\r\n```\r\n\r\nThen up in you menu call\r\n```java\r\nprint(getAuthor());\r\n```\r\n\r\nOtherwise renaming your method to something like `printAuthorMenuOption` tells us exactly what that method does without looking at it.","created_at":"2015-09-22T16:10:20Z","updated_at":"2015-09-22T16:10:20Z","html_url":"https://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pull/9#discussion_r40106327","pull_request_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/comments/40106327"},"html":{"href":"https://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pull/9#discussion_r40106327"},"pull_request":{"href":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/9","id":45681413,"html_url":"https://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pull/9","diff_url":"https://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pull/9.diff","patch_url":"https://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pull/9.patch","issue_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/issues/9","number":9,"state":"open","locked":false,"title":"Assignment 4","user":{"login":"kingera","id":13950574,"avatar_url":"https://avatars.githubusercontent.com/u/13950574?v=3","gravatar_id":"","url":"https://api.github.com/users/kingera","html_url":"https://github.com/kingera","followers_url":"https://api.github.com/users/kingera/followers","following_url":"https://api.github.com/users/kingera/following{/other_user}","gists_url":"https://api.github.com/users/kingera/gists{/gist_id}","starred_url":"https://api.github.com/users/kingera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingera/subscriptions","organizations_url":"https://api.github.com/users/kingera/orgs","repos_url":"https://api.github.com/users/kingera/repos","events_url":"https://api.github.com/users/kingera/events{/privacy}","received_events_url":"https://api.github.com/users/kingera/received_events","type":"User","site_admin":false},"body":"Takes assignment 2 and changes the case options to methods.","created_at":"2015-09-22T15:53:13Z","updated_at":"2015-09-22T16:10:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce3974a403a169822721bf8cff7e0394163b46a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/9/commits","review_comments_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/9/comments","review_comment_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/issues/9/comments","statuses_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/statuses/8fee23b76a4a3d4e2924f3f8584dad37cee7d6b2","head":{"label":"kingera:master","ref":"master","sha":"8fee23b76a4a3d4e2924f3f8584dad37cee7d6b2","user":{"login":"kingera","id":13950574,"avatar_url":"https://avatars.githubusercontent.com/u/13950574?v=3","gravatar_id":"","url":"https://api.github.com/users/kingera","html_url":"https://github.com/kingera","followers_url":"https://api.github.com/users/kingera/followers","following_url":"https://api.github.com/users/kingera/following{/other_user}","gists_url":"https://api.github.com/users/kingera/gists{/gist_id}","starred_url":"https://api.github.com/users/kingera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingera/subscriptions","organizations_url":"https://api.github.com/users/kingera/orgs","repos_url":"https://api.github.com/users/kingera/repos","events_url":"https://api.github.com/users/kingera/events{/privacy}","received_events_url":"https://api.github.com/users/kingera/received_events","type":"User","site_admin":false},"repo":{"id":42943754,"name":"CPT-163-27-F2015-Assignment-4-methods","full_name":"kingera/CPT-163-27-F2015-Assignment-4-methods","owner":{"login":"kingera","id":13950574,"avatar_url":"https://avatars.githubusercontent.com/u/13950574?v=3","gravatar_id":"","url":"https://api.github.com/users/kingera","html_url":"https://github.com/kingera","followers_url":"https://api.github.com/users/kingera/followers","following_url":"https://api.github.com/users/kingera/following{/other_user}","gists_url":"https://api.github.com/users/kingera/gists{/gist_id}","starred_url":"https://api.github.com/users/kingera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingera/subscriptions","organizations_url":"https://api.github.com/users/kingera/orgs","repos_url":"https://api.github.com/users/kingera/repos","events_url":"https://api.github.com/users/kingera/events{/privacy}","received_events_url":"https://api.github.com/users/kingera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kingera/CPT-163-27-F2015-Assignment-4-methods","description":"","fork":true,"url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods","forks_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/forks","keys_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/teams","hooks_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/hooks","issue_events_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/issues/events{/number}","events_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/events","assignees_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/assignees{/user}","branches_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/branches{/branch}","tags_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/tags","blobs_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/git/refs{/sha}","trees_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/statuses/{sha}","languages_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/languages","stargazers_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/stargazers","contributors_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/contributors","subscribers_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/subscribers","subscription_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/subscription","commits_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/commits{/sha}","git_commits_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/git/commits{/sha}","comments_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/comments{/number}","issue_comment_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/issues/comments{/number}","contents_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/contents/{+path}","compare_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/merges","archive_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/downloads","issues_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/issues{/number}","pulls_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/pulls{/number}","milestones_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/milestones{/number}","notifications_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/labels{/name}","releases_url":"https://api.github.com/repos/kingera/CPT-163-27-F2015-Assignment-4-methods/releases{/id}","created_at":"2015-09-22T15:45:49Z","updated_at":"2015-09-22T15:52:36Z","pushed_at":"2015-09-22T15:52:35Z","git_url":"git://github.com/kingera/CPT-163-27-F2015-Assignment-4-methods.git","ssh_url":"git@github.com:kingera/CPT-163-27-F2015-Assignment-4-methods.git","clone_url":"https://github.com/kingera/CPT-163-27-F2015-Assignment-4-methods.git","svn_url":"https://github.com/kingera/CPT-163-27-F2015-Assignment-4-methods","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"WCCCEDU:master","ref":"master","sha":"a05dba8d0dcc6bb205adcfb56fc955c41736e576","user":{"login":"WCCCEDU","id":13862104,"avatar_url":"https://avatars.githubusercontent.com/u/13862104?v=3","gravatar_id":"","url":"https://api.github.com/users/WCCCEDU","html_url":"https://github.com/WCCCEDU","followers_url":"https://api.github.com/users/WCCCEDU/followers","following_url":"https://api.github.com/users/WCCCEDU/following{/other_user}","gists_url":"https://api.github.com/users/WCCCEDU/gists{/gist_id}","starred_url":"https://api.github.com/users/WCCCEDU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WCCCEDU/subscriptions","organizations_url":"https://api.github.com/users/WCCCEDU/orgs","repos_url":"https://api.github.com/users/WCCCEDU/repos","events_url":"https://api.github.com/users/WCCCEDU/events{/privacy}","received_events_url":"https://api.github.com/users/WCCCEDU/received_events","type":"Organization","site_admin":false},"repo":{"id":42618128,"name":"CPT-163-27-F2015-Assignment-4-methods","full_name":"WCCCEDU/CPT-163-27-F2015-Assignment-4-methods","owner":{"login":"WCCCEDU","id":13862104,"avatar_url":"https://avatars.githubusercontent.com/u/13862104?v=3","gravatar_id":"","url":"https://api.github.com/users/WCCCEDU","html_url":"https://github.com/WCCCEDU","followers_url":"https://api.github.com/users/WCCCEDU/followers","following_url":"https://api.github.com/users/WCCCEDU/following{/other_user}","gists_url":"https://api.github.com/users/WCCCEDU/gists{/gist_id}","starred_url":"https://api.github.com/users/WCCCEDU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WCCCEDU/subscriptions","organizations_url":"https://api.github.com/users/WCCCEDU/orgs","repos_url":"https://api.github.com/users/WCCCEDU/repos","events_url":"https://api.github.com/users/WCCCEDU/events{/privacy}","received_events_url":"https://api.github.com/users/WCCCEDU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods","description":"","fork":false,"url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods","forks_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/forks","keys_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/teams","hooks_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/hooks","issue_events_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/issues/events{/number}","events_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/events","assignees_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/assignees{/user}","branches_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/branches{/branch}","tags_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/tags","blobs_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/git/refs{/sha}","trees_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/statuses/{sha}","languages_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/languages","stargazers_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/stargazers","contributors_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/contributors","subscribers_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/subscribers","subscription_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/subscription","commits_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/commits{/sha}","git_commits_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/git/commits{/sha}","comments_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/comments{/number}","issue_comment_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/issues/comments{/number}","contents_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/contents/{+path}","compare_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/merges","archive_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/downloads","issues_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/issues{/number}","pulls_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls{/number}","milestones_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/milestones{/number}","notifications_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/labels{/name}","releases_url":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/releases{/id}","created_at":"2015-09-16T23:08:31Z","updated_at":"2015-09-16T23:08:31Z","pushed_at":"2015-09-22T15:53:14Z","git_url":"git://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods.git","ssh_url":"git@github.com:WCCCEDU/CPT-163-27-F2015-Assignment-4-methods.git","clone_url":"https://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods.git","svn_url":"https://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":9,"forks":13,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/9"},"html":{"href":"https://github.com/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pull/9"},"issue":{"href":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/issues/9"},"comments":{"href":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/WCCCEDU/CPT-163-27-F2015-Assignment-4-methods/statuses/8fee23b76a4a3d4e2924f3f8584dad37cee7d6b2"}}}}