Skip to content

Commit 0d27485

Browse files
authored
Fixing lists concept typos (#2768)
* Fixing lists concept typos * Fixing typo on variable name as well
1 parent 951a406 commit 0d27485

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

concepts/lists/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# About Lists
22

33
**Lists** are the ordered sequence collection in Java.
4-
Unlike arrays, a [`List`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html) can grow in size to accomodate any number of items.
4+
Unlike arrays, a [`List`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html) can grow in size to accommodate any number of items.
55
One standard implementation is the `ArrayList` which is backed by a re-sizable array.
66
Another standard implementation is the `LinkedList` class which is backed by a doubly-linked list.
77

@@ -13,7 +13,7 @@ For example:
1313
List<String> emptyListOfStrings = List.of();
1414
List<Integer> singleInteger = List.of(1);
1515
List<Boolean> threeBooleans = List.of(true, false, true);
16-
List<Object> listWithMulitipleTypes = List.of("hello", 1, true);
16+
List<Object> listWithMultipleTypes = List.of("hello", 1, true);
1717
```
1818

1919
`List`s have various helpful methods to add, remove, get, and check for an element to be present:

concepts/lists/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Introduction to Lists
22

33
**Lists** are the ordered sequence collection in Java.
4-
Unlike arrays, a [`List`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html) can grow in size to accomodate any number of items.
4+
Unlike arrays, a [`List`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/List.html) can grow in size to accommodate any number of items.
55
One standard implementation is the `ArrayList` which is backed by a re-sizable array.
66
Another standard implementation is the `LinkedList` class which is backed by a doubly-linked list.
77

@@ -13,7 +13,7 @@ For example:
1313
List<String> emptyListOfStrings = List.of();
1414
List<Integer> singleInteger = List.of(1);
1515
List<Boolean> threeBooleans = List.of(true, false, true);
16-
List<Object> listWithMulitipleTypes = List.of("hello", 1, true);
16+
List<Object> listWithMultipleTypes = List.of("hello", 1, true);
1717
```
1818

1919
`List`s have various helpful methods to add, remove, get, and check for an element to be present:

exercises/concept/karls-languages/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ For example:
6868
List<String> emptyListOfStrings = List.of();
6969
List<Integer> singleInteger = List.of(1);
7070
List<Boolean> threeBooleans = List.of(true, false, true);
71-
List<Object> listWithMulitipleTypes = List.of("hello", 1, true);
71+
List<Object> listWithMultipleTypes = List.of("hello", 1, true);
7272
```
7373

7474
`List`s have various helpful methods to add, remove, get, and check for an element to be present:

0 commit comments

Comments
 (0)