{"action":"created","comment":{"url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/comments/125274173","pull_request_review_id":47648096,"id":125274173,"diff_hunk":"@@ -275,113 +275,50 @@ public static void makeOrder(Restaurant restaurant) {\n         System.out.println(\"What food you like to order? (Press the corresponding button to add it to your order)\");\n         System.out.println(\"0.Proceed to Ordering Drinks\");\n         printFood(restaurant);\n-        while (true) {\n \n-            final int input = SCANNER.nextInt();\n+        while (true) {\n \n+            int input;\n+            try {\n+                input = SCANNER.nextInt();\n+            } catch (InputMismatchException e){\n+                System.out.println(\"That wasn't a valid option, Try again.\");\n+                break;\n+            }\n             if (input == 0) {","path":"src/Main.java","position":null,"original_position":16,"commit_id":"1641576c96941731cb645bc94e2f390c2ef84ea1","original_commit_id":"1641576c96941731cb645bc94e2f390c2ef84ea1","user":{"login":"leon914","id":20950964,"avatar_url":"https://avatars3.githubusercontent.com/u/20950964?v=3","gravatar_id":"","url":"https://api.github.com/users/leon914","html_url":"https://github.com/leon914","followers_url":"https://api.github.com/users/leon914/followers","following_url":"https://api.github.com/users/leon914/following{/other_user}","gists_url":"https://api.github.com/users/leon914/gists{/gist_id}","starred_url":"https://api.github.com/users/leon914/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon914/subscriptions","organizations_url":"https://api.github.com/users/leon914/orgs","repos_url":"https://api.github.com/users/leon914/repos","events_url":"https://api.github.com/users/leon914/events{/privacy}","received_events_url":"https://api.github.com/users/leon914/received_events","type":"User","site_admin":false},"body":"on it\r\n","created_at":"2017-07-03T12:10:56Z","updated_at":"2017-07-03T12:10:56Z","html_url":"https://github.com/leon914/PROJECT-O-PIZZERIA/pull/4#discussion_r125274173","pull_request_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/comments/125274173"},"html":{"href":"https://github.com/leon914/PROJECT-O-PIZZERIA/pull/4#discussion_r125274173"},"pull_request":{"href":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/4","id":127457679,"html_url":"https://github.com/leon914/PROJECT-O-PIZZERIA/pull/4","diff_url":"https://github.com/leon914/PROJECT-O-PIZZERIA/pull/4.diff","patch_url":"https://github.com/leon914/PROJECT-O-PIZZERIA/pull/4.patch","issue_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues/4","number":4,"state":"open","locked":false,"title":"Finished Pizzeria ","user":{"login":"leon914","id":20950964,"avatar_url":"https://avatars3.githubusercontent.com/u/20950964?v=3","gravatar_id":"","url":"https://api.github.com/users/leon914","html_url":"https://github.com/leon914","followers_url":"https://api.github.com/users/leon914/followers","following_url":"https://api.github.com/users/leon914/following{/other_user}","gists_url":"https://api.github.com/users/leon914/gists{/gist_id}","starred_url":"https://api.github.com/users/leon914/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon914/subscriptions","organizations_url":"https://api.github.com/users/leon914/orgs","repos_url":"https://api.github.com/users/leon914/repos","events_url":"https://api.github.com/users/leon914/events{/privacy}","received_events_url":"https://api.github.com/users/leon914/received_events","type":"User","site_admin":false},"body":"A system that can:\r\nList of tables - occupied or not by a certain customer\r\nList items/foods - name, price etc.\r\nAs a waiter, i want to print out a list of tables and their current status\r\nAs a waiter, I want to assign a customer to a table\r\nAs a waiter, i want to un-assign a customer from a table once they have finished\r\nAs a waiter, i want to print out a menu of items\r\nAs a waiter for a customer, i want to add an item to a cutomers order\r\nAs a waiter i want to print out an entire order for a customer\r\nAs a waiter, i want to view a total price for an order\r\nSave orders to file\r\nRead orders from file\r\n","created_at":"2017-06-26T12:18:24Z","updated_at":"2017-07-03T12:10:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c550a0718dc7231fc1292e2aac4b322a73e41454","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/4/commits","review_comments_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/4/comments","review_comment_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues/4/comments","statuses_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/statuses/1641576c96941731cb645bc94e2f390c2ef84ea1","head":{"label":"leon914:Creatingorders","ref":"Creatingorders","sha":"1641576c96941731cb645bc94e2f390c2ef84ea1","user":{"login":"leon914","id":20950964,"avatar_url":"https://avatars3.githubusercontent.com/u/20950964?v=3","gravatar_id":"","url":"https://api.github.com/users/leon914","html_url":"https://github.com/leon914","followers_url":"https://api.github.com/users/leon914/followers","following_url":"https://api.github.com/users/leon914/following{/other_user}","gists_url":"https://api.github.com/users/leon914/gists{/gist_id}","starred_url":"https://api.github.com/users/leon914/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon914/subscriptions","organizations_url":"https://api.github.com/users/leon914/orgs","repos_url":"https://api.github.com/users/leon914/repos","events_url":"https://api.github.com/users/leon914/events{/privacy}","received_events_url":"https://api.github.com/users/leon914/received_events","type":"User","site_admin":false},"repo":{"id":94872294,"name":"PROJECT-O-PIZZERIA","full_name":"leon914/PROJECT-O-PIZZERIA","owner":{"login":"leon914","id":20950964,"avatar_url":"https://avatars3.githubusercontent.com/u/20950964?v=3","gravatar_id":"","url":"https://api.github.com/users/leon914","html_url":"https://github.com/leon914","followers_url":"https://api.github.com/users/leon914/followers","following_url":"https://api.github.com/users/leon914/following{/other_user}","gists_url":"https://api.github.com/users/leon914/gists{/gist_id}","starred_url":"https://api.github.com/users/leon914/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon914/subscriptions","organizations_url":"https://api.github.com/users/leon914/orgs","repos_url":"https://api.github.com/users/leon914/repos","events_url":"https://api.github.com/users/leon914/events{/privacy}","received_events_url":"https://api.github.com/users/leon914/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leon914/PROJECT-O-PIZZERIA","description":"idk","fork":false,"url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA","forks_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/forks","keys_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/teams","hooks_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/hooks","issue_events_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues/events{/number}","events_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/events","assignees_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/assignees{/user}","branches_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/branches{/branch}","tags_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/tags","blobs_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/refs{/sha}","trees_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/statuses/{sha}","languages_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/languages","stargazers_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/stargazers","contributors_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/contributors","subscribers_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/subscribers","subscription_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/subscription","commits_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/commits{/sha}","git_commits_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/commits{/sha}","comments_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/comments{/number}","issue_comment_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues/comments{/number}","contents_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/contents/{+path}","compare_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/merges","archive_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/downloads","issues_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues{/number}","pulls_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls{/number}","milestones_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/milestones{/number}","notifications_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/labels{/name}","releases_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/releases{/id}","deployments_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/deployments","created_at":"2017-06-20T09:13:01Z","updated_at":"2017-06-22T13:55:33Z","pushed_at":"2017-07-03T11:58:08Z","git_url":"git://github.com/leon914/PROJECT-O-PIZZERIA.git","ssh_url":"git@github.com:leon914/PROJECT-O-PIZZERIA.git","clone_url":"https://github.com/leon914/PROJECT-O-PIZZERIA.git","svn_url":"https://github.com/leon914/PROJECT-O-PIZZERIA","homepage":null,"size":59,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"leon914:master","ref":"master","sha":"c9d2f5fa92c3608a87c2a3961b6424e71dbb425b","user":{"login":"leon914","id":20950964,"avatar_url":"https://avatars3.githubusercontent.com/u/20950964?v=3","gravatar_id":"","url":"https://api.github.com/users/leon914","html_url":"https://github.com/leon914","followers_url":"https://api.github.com/users/leon914/followers","following_url":"https://api.github.com/users/leon914/following{/other_user}","gists_url":"https://api.github.com/users/leon914/gists{/gist_id}","starred_url":"https://api.github.com/users/leon914/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon914/subscriptions","organizations_url":"https://api.github.com/users/leon914/orgs","repos_url":"https://api.github.com/users/leon914/repos","events_url":"https://api.github.com/users/leon914/events{/privacy}","received_events_url":"https://api.github.com/users/leon914/received_events","type":"User","site_admin":false},"repo":{"id":94872294,"name":"PROJECT-O-PIZZERIA","full_name":"leon914/PROJECT-O-PIZZERIA","owner":{"login":"leon914","id":20950964,"avatar_url":"https://avatars3.githubusercontent.com/u/20950964?v=3","gravatar_id":"","url":"https://api.github.com/users/leon914","html_url":"https://github.com/leon914","followers_url":"https://api.github.com/users/leon914/followers","following_url":"https://api.github.com/users/leon914/following{/other_user}","gists_url":"https://api.github.com/users/leon914/gists{/gist_id}","starred_url":"https://api.github.com/users/leon914/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leon914/subscriptions","organizations_url":"https://api.github.com/users/leon914/orgs","repos_url":"https://api.github.com/users/leon914/repos","events_url":"https://api.github.com/users/leon914/events{/privacy}","received_events_url":"https://api.github.com/users/leon914/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leon914/PROJECT-O-PIZZERIA","description":"idk","fork":false,"url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA","forks_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/forks","keys_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/teams","hooks_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/hooks","issue_events_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues/events{/number}","events_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/events","assignees_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/assignees{/user}","branches_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/branches{/branch}","tags_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/tags","blobs_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/refs{/sha}","trees_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/statuses/{sha}","languages_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/languages","stargazers_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/stargazers","contributors_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/contributors","subscribers_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/subscribers","subscription_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/subscription","commits_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/commits{/sha}","git_commits_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/git/commits{/sha}","comments_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/comments{/number}","issue_comment_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues/comments{/number}","contents_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/contents/{+path}","compare_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/merges","archive_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/downloads","issues_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues{/number}","pulls_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls{/number}","milestones_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/milestones{/number}","notifications_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/labels{/name}","releases_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/releases{/id}","deployments_url":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/deployments","created_at":"2017-06-20T09:13:01Z","updated_at":"2017-06-22T13:55:33Z","pushed_at":"2017-07-03T11:58:08Z","git_url":"git://github.com/leon914/PROJECT-O-PIZZERIA.git","ssh_url":"git@github.com:leon914/PROJECT-O-PIZZERIA.git","clone_url":"https://github.com/leon914/PROJECT-O-PIZZERIA.git","svn_url":"https://github.com/leon914/PROJECT-O-PIZZERIA","homepage":null,"size":59,"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,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/4"},"html":{"href":"https://github.com/leon914/PROJECT-O-PIZZERIA/pull/4"},"issue":{"href":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues/4"},"comments":{"href":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/leon914/PROJECT-O-PIZZERIA/statuses/1641576c96941731cb645bc94e2f390c2ef84ea1"}}}}
{"actor":{"display_login":"leon914"}}