Skip to content

Commit

Permalink
Fixing lists concept typos (#2768)
Browse files Browse the repository at this point in the history
* Fixing lists concept typos

* Fixing typo on variable name as well
  • Loading branch information
manumafe98 authored Apr 2, 2024
1 parent 951a406 commit 0d27485
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions concepts/lists/about.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# About Lists

**Lists** are the ordered sequence collection in Java.
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.
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.
One standard implementation is the `ArrayList` which is backed by a re-sizable array.
Another standard implementation is the `LinkedList` class which is backed by a doubly-linked list.

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

`List`s have various helpful methods to add, remove, get, and check for an element to be present:
Expand Down
4 changes: 2 additions & 2 deletions concepts/lists/introduction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Introduction to Lists

**Lists** are the ordered sequence collection in Java.
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.
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.
One standard implementation is the `ArrayList` which is backed by a re-sizable array.
Another standard implementation is the `LinkedList` class which is backed by a doubly-linked list.

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

`List`s have various helpful methods to add, remove, get, and check for an element to be present:
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/karls-languages/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ For example:
List<String> emptyListOfStrings = List.of();
List<Integer> singleInteger = List.of(1);
List<Boolean> threeBooleans = List.of(true, false, true);
List<Object> listWithMulitipleTypes = List.of("hello", 1, true);
List<Object> listWithMultipleTypes = List.of("hello", 1, true);
```

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

0 comments on commit 0d27485

Please sign in to comment.