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 78cba9d commit a94022eCopy full SHA for a94022e
Functional-2/noNeg.java
@@ -0,0 +1,5 @@
1
+public List<Integer> noNeg(List<Integer> nums)
2
+ {
3
+ nums.removeIf(n -> n < 0);
4
+ return nums;
5
+ }
0 commit comments