We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f8936 commit 4ad71a0Copy full SHA for 4ad71a0
.gitignore
@@ -1 +1,2 @@
1
-**Main.java
+**Main.java
2
+/out
src/Lists/ArrayListCustom.java
@@ -112,6 +112,7 @@ public String toString() {
112
return builder.append("]").toString();
113
}
114
115
+ // forEach method takes Consumer<T>
116
public void forEach(Consumer<T> o) {
117
Objects.requireNonNull(o);
118
for (int i = 0; i < size; i++) {
src/Maps/HashMapCustom.java
@@ -123,6 +123,7 @@ public void clear() {
123
124
125
126
+ // forEach method takes BiConsumer<K,V>
127
public void forEach(BiConsumer<K, V> o) {
128
129
for (int i = 0; i < bucket.length; i++) {
0 commit comments