I have the following code
set1.forEach( k -> {
for (String s : set2) {
if(s.split(";")[0].equals(k){
//do something
}
}
...
but I have this error
k cannot be resolved to a variable
Is there a way to read this variable?
Thanks