Repository navigation
Expand file tree
/
Copy pathunit3.html
More file actions
227 lines (186 loc) · 7.15 KB
/
Copy pathunit3.html
File metadata and controls
227 lines (186 loc) · 7.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>eduPLEX: AP Computer Science Unit 3</title>
<!-- Google font -->
<link href="https://fonts.googleapis.com/css?family=Lato:700%7CMontserrat:400,600" rel="stylesheet">
<!-- Bootstrap -->
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css"/>
<!-- Font Awesome Icon -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- Custom stlylesheet -->
<link type="text/css" rel="stylesheet" href="css/style.css"/>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Header -->
<header id="header" class="transparent-nav">
<div class="container">
<div class="navbar-header">
<!-- Logo -->
<div class="navbar-brand">
<a class="logo" href="index.html">
<img src="./img/logo-alt.png" alt="logo">
</a>
</div>
<!-- /Logo -->
<!-- Mobile toggle -->
<button class="navbar-toggle">
<span></span>
</button>
<!-- /Mobile toggle -->
</div>
<!-- Navigation -->
<nav id="nav">
<ul class="main-menu nav navbar-nav navbar-right">
<li><a href="index.html">Home</a></li>
<li><a href="index.html#courses">Learn</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
<!-- /Navigation -->
</div>
</header>
<!-- /Header -->
<!-- Hero-area -->
<div class="hero-area">
<!-- Backgound Image -->
<div class="bg-image bg-parallax overlay" style="background-image:url(./img/page-background.jpg)"></div>
<!-- /Backgound Image -->
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1 text-center">
<ul class="hero-area-tree">
<li><a href="index.html#courses">Learn</a></li>
<li>Unit 3</li>
</ul>
<h1 class="white-text">Java Syntax and Style</h1>
</div>
</div>
</div>
</div>
<!-- /Hero-area -->
<!-- Blog -->
<div id="blog" class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<!-- main blog -->
<div id="main" class="col-md-9">
<h2>
Syntax and Style
</h2>
<bodytext>
Now that we're seen the vast scope of computer science, we'll narrow in on learning how to program in Java. This unit explores some basics of Java, including what syntax and style are, how to write comments, and what keywords are.
</bodytext>
<h3>
Understanding Syntax and Style
</h3>
<bodytext>
Programming languages are defined by their syntax, which are the rules that say what you can and can't type. It's what makes code look like code, and really, it's just a specific way for you to tell your computer what you want it to do. Style, on the other hand, refers to how we organize our code nicely and neatly for other humans to read.
</bodytext>
<br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/HywnzrC3NC4" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
<bodytext>
Style is great because it makes our code readable for humans. Comments can also help in doing this.
</bodytext>
<br>
<h3>
Comments and Basic Javadoc Comments
</h3>
<bodytext>
This video explores how to write comments in Java, and gives a brief introduction to what Javadoc comments are.
</bodytext>
<br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/wjtwuKNvxno" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
<bodytext>
Next up, we'll take a look at how to approach naming things in our programs.
</bodytext>
<h3>
Keywords and Programmer-Defined Names
</h3>
<bodytext>
Keywords refer to words that have special meanings in our programs. Programmer-defined names refer to the names that we as software engineers give to different things in our programs.
</bodytext>
<br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/UkRqws3yRhI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br>
<bodytext>
Now that we have an understanding of what syntax and style are, we'll move on to one final conceptual unit — arguably the most important one! — before we finally start coding ourselves.
</bodytext>
<div align="right">
<a class="main-button icon-button" href="unit4.html">Unit 4</a>
</div>
</div>
<!-- /main blog -->
</div>
<!-- row -->
</div>
<!-- container -->
</div>
<!-- /Blog -->
<!-- Footer -->
<footer id="footer" class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<!-- footer logo -->
<div class="col-md-6">
<div class="footer-logo">
<a class="logo" href="index.html">
<img src="./img/logo.png" alt="logo">
</a>
</div>
</div>
<!-- footer logo -->
<!-- footer nav -->
<div class="col-md-6">
<ul class="footer-nav">
<li><a href="index.html">Home</a></li>
<li><a href="index.html#courses">Learn</a></li>
<li><a href="about.html">About</a></li>
</ul>
</div>
<!-- /footer nav -->
</div>
<!-- /row -->
<!-- row -->
<div id="bottom-footer" class="row">
<!-- social -->
<div class="col-md-4 col-md-push-8"></div>
<!-- /social -->
<!-- copyright -->
<div class="col-md-8 col-md-pull-4">
<div class="footer-copyright">
<span>© Copyright 2018. All Rights Reserved. | This template is made with <a href="https://colorlib.com">Colorlib</a></span>
</div>
</div>
<!-- /copyright -->
</div>
<!-- row -->
</div>
<!-- /container -->
</footer>
<!-- /Footer -->
<!-- preloader -->
<div id='preloader'><div class='preloader'></div></div>
<!-- /preloader -->
<!-- jQuery Plugins -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>