{"action":"created","comment":{"url":"https://api.github.com/repos/C4Q/AC3.3/pulls/comments/73571530","id":73571530,"diff_hunk":"@@ -0,0 +1,225 @@\n+- title: Control Structures\n+- tags: java if else switch\n+\n+#Objectives\n+\n+-Write an If statement\n+-Write an If - Else statement\n+-Write a Switch statement\n+\n+#Resources\n+-[Java coding in browser](https://repl.it/languages/java)\n+-[Control Flow Tutorial](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/flow.html)\n+-[Java Operators](https://docs.oracle.com/javase/tutorial/java/nutsandbolts/opsummary.html)\n+\n+# Lecture\n+\n+## Control structures\n+Programming requires telling a computer to make decisions based on inputs. There\n+are several ways to direct the flow of a program, using control structures. The\n+simplest is the if statement.\n+\n+## If Statement\n+```java\n+if (BOOLEAN_CONDITION) {\n+  // do something\n+}\n+```\n+An if statement needs a boolean condition to operate. If that expression\n+evaluates to true, then the code within the if block will run. Otherwise, the\n+code within the block is skipped, and the program will continue.\n+\n+```java\n+boolean alwaysTrue = true;\n+if (alwaysTrue) {\n+  System.out.println(\"This code always runs\");\n+}\n+System.out.println(\"Then this code runs\");\n+```\n+\n+An if statement will evaluate code within the parenthesis. The statement must\n+return a true or false value;\n+","path":"lessons/control-structures/README.md","position":42,"original_position":42,"commit_id":"4529d0885bbb8020f4d14ac1343e08ccc7092d8f","original_commit_id":"4529d0885bbb8020f4d14ac1343e08ccc7092d8f","user":{"login":"rina-lam-goldfield","id":18600396,"avatar_url":"https://avatars.githubusercontent.com/u/18600396?v=3","gravatar_id":"","url":"https://api.github.com/users/rina-lam-goldfield","html_url":"https://github.com/rina-lam-goldfield","followers_url":"https://api.github.com/users/rina-lam-goldfield/followers","following_url":"https://api.github.com/users/rina-lam-goldfield/following{/other_user}","gists_url":"https://api.github.com/users/rina-lam-goldfield/gists{/gist_id}","starred_url":"https://api.github.com/users/rina-lam-goldfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rina-lam-goldfield/subscriptions","organizations_url":"https://api.github.com/users/rina-lam-goldfield/orgs","repos_url":"https://api.github.com/users/rina-lam-goldfield/repos","events_url":"https://api.github.com/users/rina-lam-goldfield/events{/privacy}","received_events_url":"https://api.github.com/users/rina-lam-goldfield/received_events","type":"User","site_admin":false},"body":"typo; parentheses rather than parenthesis","created_at":"2016-08-04T17:58:20Z","updated_at":"2016-08-04T17:58:20Z","html_url":"https://github.com/C4Q/AC3.3/pull/8#discussion_r73571530","pull_request_url":"https://api.github.com/repos/C4Q/AC3.3/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/C4Q/AC3.3/pulls/comments/73571530"},"html":{"href":"https://github.com/C4Q/AC3.3/pull/8#discussion_r73571530"},"pull_request":{"href":"https://api.github.com/repos/C4Q/AC3.3/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/C4Q/AC3.3/pulls/8","id":79995741,"html_url":"https://github.com/C4Q/AC3.3/pull/8","diff_url":"https://github.com/C4Q/AC3.3/pull/8.diff","patch_url":"https://github.com/C4Q/AC3.3/pull/8.patch","issue_url":"https://api.github.com/repos/C4Q/AC3.3/issues/8","number":8,"state":"open","locked":false,"title":"added control structures draft","user":{"login":"jsjrobotics","id":7088944,"avatar_url":"https://avatars.githubusercontent.com/u/7088944?v=3","gravatar_id":"","url":"https://api.github.com/users/jsjrobotics","html_url":"https://github.com/jsjrobotics","followers_url":"https://api.github.com/users/jsjrobotics/followers","following_url":"https://api.github.com/users/jsjrobotics/following{/other_user}","gists_url":"https://api.github.com/users/jsjrobotics/gists{/gist_id}","starred_url":"https://api.github.com/users/jsjrobotics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsjrobotics/subscriptions","organizations_url":"https://api.github.com/users/jsjrobotics/orgs","repos_url":"https://api.github.com/users/jsjrobotics/repos","events_url":"https://api.github.com/users/jsjrobotics/events{/privacy}","received_events_url":"https://api.github.com/users/jsjrobotics/received_events","type":"User","site_admin":false},"body":"@abassawo Control structures is your class on 8/22. Removed topics that I will cover on 8/23. Feel free to modify as desired. Left in my draft of if else and switch discussion.","created_at":"2016-08-03T23:22:24Z","updated_at":"2016-08-04T17:58:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d500fa19bebb8415a0ca4d8f7c36305cfce2070c","assignee":{"login":"alexhsamuel","id":5896679,"avatar_url":"https://avatars.githubusercontent.com/u/5896679?v=3","gravatar_id":"","url":"https://api.github.com/users/alexhsamuel","html_url":"https://github.com/alexhsamuel","followers_url":"https://api.github.com/users/alexhsamuel/followers","following_url":"https://api.github.com/users/alexhsamuel/following{/other_user}","gists_url":"https://api.github.com/users/alexhsamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/alexhsamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexhsamuel/subscriptions","organizations_url":"https://api.github.com/users/alexhsamuel/orgs","repos_url":"https://api.github.com/users/alexhsamuel/repos","events_url":"https://api.github.com/users/alexhsamuel/events{/privacy}","received_events_url":"https://api.github.com/users/alexhsamuel/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexhsamuel","id":5896679,"avatar_url":"https://avatars.githubusercontent.com/u/5896679?v=3","gravatar_id":"","url":"https://api.github.com/users/alexhsamuel","html_url":"https://github.com/alexhsamuel","followers_url":"https://api.github.com/users/alexhsamuel/followers","following_url":"https://api.github.com/users/alexhsamuel/following{/other_user}","gists_url":"https://api.github.com/users/alexhsamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/alexhsamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexhsamuel/subscriptions","organizations_url":"https://api.github.com/users/alexhsamuel/orgs","repos_url":"https://api.github.com/users/alexhsamuel/repos","events_url":"https://api.github.com/users/alexhsamuel/events{/privacy}","received_events_url":"https://api.github.com/users/alexhsamuel/received_events","type":"User","site_admin":false},{"login":"abassawo","id":8889247,"avatar_url":"https://avatars.githubusercontent.com/u/8889247?v=3","gravatar_id":"","url":"https://api.github.com/users/abassawo","html_url":"https://github.com/abassawo","followers_url":"https://api.github.com/users/abassawo/followers","following_url":"https://api.github.com/users/abassawo/following{/other_user}","gists_url":"https://api.github.com/users/abassawo/gists{/gist_id}","starred_url":"https://api.github.com/users/abassawo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abassawo/subscriptions","organizations_url":"https://api.github.com/users/abassawo/orgs","repos_url":"https://api.github.com/users/abassawo/repos","events_url":"https://api.github.com/users/abassawo/events{/privacy}","received_events_url":"https://api.github.com/users/abassawo/received_events","type":"User","site_admin":false},{"login":"ramonaharrison","id":9170966,"avatar_url":"https://avatars.githubusercontent.com/u/9170966?v=3","gravatar_id":"","url":"https://api.github.com/users/ramonaharrison","html_url":"https://github.com/ramonaharrison","followers_url":"https://api.github.com/users/ramonaharrison/followers","following_url":"https://api.github.com/users/ramonaharrison/following{/other_user}","gists_url":"https://api.github.com/users/ramonaharrison/gists{/gist_id}","starred_url":"https://api.github.com/users/ramonaharrison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramonaharrison/subscriptions","organizations_url":"https://api.github.com/users/ramonaharrison/orgs","repos_url":"https://api.github.com/users/ramonaharrison/repos","events_url":"https://api.github.com/users/ramonaharrison/events{/privacy}","received_events_url":"https://api.github.com/users/ramonaharrison/received_events","type":"User","site_admin":false},{"login":"rina-lam-goldfield","id":18600396,"avatar_url":"https://avatars.githubusercontent.com/u/18600396?v=3","gravatar_id":"","url":"https://api.github.com/users/rina-lam-goldfield","html_url":"https://github.com/rina-lam-goldfield","followers_url":"https://api.github.com/users/rina-lam-goldfield/followers","following_url":"https://api.github.com/users/rina-lam-goldfield/following{/other_user}","gists_url":"https://api.github.com/users/rina-lam-goldfield/gists{/gist_id}","starred_url":"https://api.github.com/users/rina-lam-goldfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rina-lam-goldfield/subscriptions","organizations_url":"https://api.github.com/users/rina-lam-goldfield/orgs","repos_url":"https://api.github.com/users/rina-lam-goldfield/repos","events_url":"https://api.github.com/users/rina-lam-goldfield/events{/privacy}","received_events_url":"https://api.github.com/users/rina-lam-goldfield/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/C4Q/AC3.3/pulls/8/commits","review_comments_url":"https://api.github.com/repos/C4Q/AC3.3/pulls/8/comments","review_comment_url":"https://api.github.com/repos/C4Q/AC3.3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/C4Q/AC3.3/issues/8/comments","statuses_url":"https://api.github.com/repos/C4Q/AC3.3/statuses/4529d0885bbb8020f4d14ac1343e08ccc7092d8f","head":{"label":"C4Q:control-structures","ref":"control-structures","sha":"4529d0885bbb8020f4d14ac1343e08ccc7092d8f","user":{"login":"C4Q","id":5825944,"avatar_url":"https://avatars.githubusercontent.com/u/5825944?v=3","gravatar_id":"","url":"https://api.github.com/users/C4Q","html_url":"https://github.com/C4Q","followers_url":"https://api.github.com/users/C4Q/followers","following_url":"https://api.github.com/users/C4Q/following{/other_user}","gists_url":"https://api.github.com/users/C4Q/gists{/gist_id}","starred_url":"https://api.github.com/users/C4Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C4Q/subscriptions","organizations_url":"https://api.github.com/users/C4Q/orgs","repos_url":"https://api.github.com/users/C4Q/repos","events_url":"https://api.github.com/users/C4Q/events{/privacy}","received_events_url":"https://api.github.com/users/C4Q/received_events","type":"Organization","site_admin":false},"repo":{"id":63269236,"name":"AC3.3","full_name":"C4Q/AC3.3","owner":{"login":"C4Q","id":5825944,"avatar_url":"https://avatars.githubusercontent.com/u/5825944?v=3","gravatar_id":"","url":"https://api.github.com/users/C4Q","html_url":"https://github.com/C4Q","followers_url":"https://api.github.com/users/C4Q/followers","following_url":"https://api.github.com/users/C4Q/following{/other_user}","gists_url":"https://api.github.com/users/C4Q/gists{/gist_id}","starred_url":"https://api.github.com/users/C4Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C4Q/subscriptions","organizations_url":"https://api.github.com/users/C4Q/orgs","repos_url":"https://api.github.com/users/C4Q/repos","events_url":"https://api.github.com/users/C4Q/events{/privacy}","received_events_url":"https://api.github.com/users/C4Q/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/C4Q/AC3.3","description":"Access Code 3.3: Mobile Development with Android","fork":false,"url":"https://api.github.com/repos/C4Q/AC3.3","forks_url":"https://api.github.com/repos/C4Q/AC3.3/forks","keys_url":"https://api.github.com/repos/C4Q/AC3.3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/C4Q/AC3.3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/C4Q/AC3.3/teams","hooks_url":"https://api.github.com/repos/C4Q/AC3.3/hooks","issue_events_url":"https://api.github.com/repos/C4Q/AC3.3/issues/events{/number}","events_url":"https://api.github.com/repos/C4Q/AC3.3/events","assignees_url":"https://api.github.com/repos/C4Q/AC3.3/assignees{/user}","branches_url":"https://api.github.com/repos/C4Q/AC3.3/branches{/branch}","tags_url":"https://api.github.com/repos/C4Q/AC3.3/tags","blobs_url":"https://api.github.com/repos/C4Q/AC3.3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/C4Q/AC3.3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/C4Q/AC3.3/git/refs{/sha}","trees_url":"https://api.github.com/repos/C4Q/AC3.3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/C4Q/AC3.3/statuses/{sha}","languages_url":"https://api.github.com/repos/C4Q/AC3.3/languages","stargazers_url":"https://api.github.com/repos/C4Q/AC3.3/stargazers","contributors_url":"https://api.github.com/repos/C4Q/AC3.3/contributors","subscribers_url":"https://api.github.com/repos/C4Q/AC3.3/subscribers","subscription_url":"https://api.github.com/repos/C4Q/AC3.3/subscription","commits_url":"https://api.github.com/repos/C4Q/AC3.3/commits{/sha}","git_commits_url":"https://api.github.com/repos/C4Q/AC3.3/git/commits{/sha}","comments_url":"https://api.github.com/repos/C4Q/AC3.3/comments{/number}","issue_comment_url":"https://api.github.com/repos/C4Q/AC3.3/issues/comments{/number}","contents_url":"https://api.github.com/repos/C4Q/AC3.3/contents/{+path}","compare_url":"https://api.github.com/repos/C4Q/AC3.3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/C4Q/AC3.3/merges","archive_url":"https://api.github.com/repos/C4Q/AC3.3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/C4Q/AC3.3/downloads","issues_url":"https://api.github.com/repos/C4Q/AC3.3/issues{/number}","pulls_url":"https://api.github.com/repos/C4Q/AC3.3/pulls{/number}","milestones_url":"https://api.github.com/repos/C4Q/AC3.3/milestones{/number}","notifications_url":"https://api.github.com/repos/C4Q/AC3.3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/C4Q/AC3.3/labels{/name}","releases_url":"https://api.github.com/repos/C4Q/AC3.3/releases{/id}","deployments_url":"https://api.github.com/repos/C4Q/AC3.3/deployments","created_at":"2016-07-13T18:16:19Z","updated_at":"2016-07-13T18:17:18Z","pushed_at":"2016-08-04T01:54:35Z","git_url":"git://github.com/C4Q/AC3.3.git","ssh_url":"git@github.com:C4Q/AC3.3.git","clone_url":"https://github.com/C4Q/AC3.3.git","svn_url":"https://github.com/C4Q/AC3.3","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"C4Q:master","ref":"master","sha":"464d0b04ed57b46f307e01d1c033abed7a2b8cee","user":{"login":"C4Q","id":5825944,"avatar_url":"https://avatars.githubusercontent.com/u/5825944?v=3","gravatar_id":"","url":"https://api.github.com/users/C4Q","html_url":"https://github.com/C4Q","followers_url":"https://api.github.com/users/C4Q/followers","following_url":"https://api.github.com/users/C4Q/following{/other_user}","gists_url":"https://api.github.com/users/C4Q/gists{/gist_id}","starred_url":"https://api.github.com/users/C4Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C4Q/subscriptions","organizations_url":"https://api.github.com/users/C4Q/orgs","repos_url":"https://api.github.com/users/C4Q/repos","events_url":"https://api.github.com/users/C4Q/events{/privacy}","received_events_url":"https://api.github.com/users/C4Q/received_events","type":"Organization","site_admin":false},"repo":{"id":63269236,"name":"AC3.3","full_name":"C4Q/AC3.3","owner":{"login":"C4Q","id":5825944,"avatar_url":"https://avatars.githubusercontent.com/u/5825944?v=3","gravatar_id":"","url":"https://api.github.com/users/C4Q","html_url":"https://github.com/C4Q","followers_url":"https://api.github.com/users/C4Q/followers","following_url":"https://api.github.com/users/C4Q/following{/other_user}","gists_url":"https://api.github.com/users/C4Q/gists{/gist_id}","starred_url":"https://api.github.com/users/C4Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C4Q/subscriptions","organizations_url":"https://api.github.com/users/C4Q/orgs","repos_url":"https://api.github.com/users/C4Q/repos","events_url":"https://api.github.com/users/C4Q/events{/privacy}","received_events_url":"https://api.github.com/users/C4Q/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/C4Q/AC3.3","description":"Access Code 3.3: Mobile Development with Android","fork":false,"url":"https://api.github.com/repos/C4Q/AC3.3","forks_url":"https://api.github.com/repos/C4Q/AC3.3/forks","keys_url":"https://api.github.com/repos/C4Q/AC3.3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/C4Q/AC3.3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/C4Q/AC3.3/teams","hooks_url":"https://api.github.com/repos/C4Q/AC3.3/hooks","issue_events_url":"https://api.github.com/repos/C4Q/AC3.3/issues/events{/number}","events_url":"https://api.github.com/repos/C4Q/AC3.3/events","assignees_url":"https://api.github.com/repos/C4Q/AC3.3/assignees{/user}","branches_url":"https://api.github.com/repos/C4Q/AC3.3/branches{/branch}","tags_url":"https://api.github.com/repos/C4Q/AC3.3/tags","blobs_url":"https://api.github.com/repos/C4Q/AC3.3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/C4Q/AC3.3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/C4Q/AC3.3/git/refs{/sha}","trees_url":"https://api.github.com/repos/C4Q/AC3.3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/C4Q/AC3.3/statuses/{sha}","languages_url":"https://api.github.com/repos/C4Q/AC3.3/languages","stargazers_url":"https://api.github.com/repos/C4Q/AC3.3/stargazers","contributors_url":"https://api.github.com/repos/C4Q/AC3.3/contributors","subscribers_url":"https://api.github.com/repos/C4Q/AC3.3/subscribers","subscription_url":"https://api.github.com/repos/C4Q/AC3.3/subscription","commits_url":"https://api.github.com/repos/C4Q/AC3.3/commits{/sha}","git_commits_url":"https://api.github.com/repos/C4Q/AC3.3/git/commits{/sha}","comments_url":"https://api.github.com/repos/C4Q/AC3.3/comments{/number}","issue_comment_url":"https://api.github.com/repos/C4Q/AC3.3/issues/comments{/number}","contents_url":"https://api.github.com/repos/C4Q/AC3.3/contents/{+path}","compare_url":"https://api.github.com/repos/C4Q/AC3.3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/C4Q/AC3.3/merges","archive_url":"https://api.github.com/repos/C4Q/AC3.3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/C4Q/AC3.3/downloads","issues_url":"https://api.github.com/repos/C4Q/AC3.3/issues{/number}","pulls_url":"https://api.github.com/repos/C4Q/AC3.3/pulls{/number}","milestones_url":"https://api.github.com/repos/C4Q/AC3.3/milestones{/number}","notifications_url":"https://api.github.com/repos/C4Q/AC3.3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/C4Q/AC3.3/labels{/name}","releases_url":"https://api.github.com/repos/C4Q/AC3.3/releases{/id}","deployments_url":"https://api.github.com/repos/C4Q/AC3.3/deployments","created_at":"2016-07-13T18:16:19Z","updated_at":"2016-07-13T18:17:18Z","pushed_at":"2016-08-04T01:54:35Z","git_url":"git://github.com/C4Q/AC3.3.git","ssh_url":"git@github.com:C4Q/AC3.3.git","clone_url":"https://github.com/C4Q/AC3.3.git","svn_url":"https://github.com/C4Q/AC3.3","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/C4Q/AC3.3/pulls/8"},"html":{"href":"https://github.com/C4Q/AC3.3/pull/8"},"issue":{"href":"https://api.github.com/repos/C4Q/AC3.3/issues/8"},"comments":{"href":"https://api.github.com/repos/C4Q/AC3.3/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/C4Q/AC3.3/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/C4Q/AC3.3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/C4Q/AC3.3/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/C4Q/AC3.3/statuses/4529d0885bbb8020f4d14ac1343e08ccc7092d8f"}}}}
{"actor":{"display_login":"rina-lam-goldfield"}}