1
0
mirror of https://gitlab.com/magicalsoup/Highschool.git synced 2025-01-24 00:21:45 -05:00
highschool/Grade 10/ICS4U1/Class_1.md
2019-09-06 16:03:47 +00:00

39 lines
649 B
Markdown

# 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>