We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 936fb7a commit 9c2b1baCopy full SHA for 9c2b1ba
1 file changed
pages/examples/arraylist.md
@@ -26,8 +26,8 @@ public interface ArrayListRefinements<E> {
26
```
27
28
```java
29
-ArrayList<Integer> list = new ArrayList<>();
30
-list.add(1);
+ArrayList<String> list = new ArrayList<>();
+list.add("apple");
31
list.get(0);
32
list.get(1); // Refinement Error
33
0 commit comments