You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the comment. This is a valid method to convert the ArrayList to an array of int's. The "i" is inside the lambada expression and it is valid. It may be misleading because it has the same name as the "for (int i " variable. It could have been:
There is a problem with this line
return result.stream().mapToInt(i -> i).toArray();
i is not declared anywhere. What is its meaning ?
The text was updated successfully, but these errors were encountered: