Skip to content

Commit a94022e

Browse files
authored
Create noNeg.java
1 parent 78cba9d commit a94022e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Functional-2/noNeg.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)