mirror of
https://gitlab.com/magicalsoup/Highschool.git
synced 2025-01-23 16:11:46 -05:00
Add new file
This commit is contained in:
parent
663eb5b27d
commit
e150cba542
38
Grade 10/ICS4U1/Class_1.md
Normal file
38
Grade 10/ICS4U1/Class_1.md
Normal file
@ -0,0 +1,38 @@
|
||||
# Class 1 notes
|
||||
|
||||
# Array Review
|
||||
|
||||
## What is an Array:
|
||||
- An (reference) object used to store a **list** of values
|
||||
- A **contiguous** block of memory is used to store the values.
|
||||
- Each **cell** holds a value
|
||||
- All the values are the same **type**
|
||||
- It can store all kinds of data, `int`, `double`, `object`, etc, the type stored can be primitive (`int`) or reference (`object`)
|
||||
|
||||
## Example
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>index</th>
|
||||
<td>0</td>
|
||||
<td>1</td>
|
||||
<td>2</td>
|
||||
<td>3</td>
|
||||
<td>4</td>
|
||||
<td>5</td>
|
||||
<td>6</td>
|
||||
<td>7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>value</th>
|
||||
<td>80</td>
|
||||
<td>120</td>
|
||||
<td>103</td>
|
||||
<td>138</td>
|
||||
<td>94</td>
|
||||
<td>109</td>
|
||||
<td>83</td>
|
||||
<td>117</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
Loading…
Reference in New Issue
Block a user