import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.function.*;

class Ideone {
	static class Wrapper {
		public Integer a;
	}
	
    public static void main (String[] args) throws java.lang.Exception {
    	Wrapper w = new Wrapper();
    	w.a = 9;
    	
        Consumer<Integer> f = (Integer b) -> {
        	System.out.println(w.a + b);
        	w.a = 7; // Allowed
        };
        
        f.accept(10);
        f.accept(10);
        w.a = 3; // Allowed
        f.accept(10);
    }
}