S SearchRSS
< BackHome
Newest questions tagged java - Stack Overflow

Variable initially NULL, set in a try/catch, and later used in a lambda gives "Local variable required to be final or effectively final"

I have a variable which is initialized as null and set in a try/catch block from a method that can throw an exception. Later on, that variable is used in a lambda expression. This occurs in a loop. for (String refId : re

View original source