How to access Outer Variable of for loop in java8?

Following is My Code

List<Lead> Mylead = adminService.GetMyData(10);
int i=0;
Mylead.forEach(lead->{
  i=10;
});

Error : Local variable I defined in an enclosing scope must be final
or effectively final