public class VariableTest99 { public static void main(String[] args) { char c1 = 'A'; { char c2 = 'B'; System.out.println(c1); System.out.println(c2);
} }
}
블럭안에서 변수를 선언하면 블럭안에서 사용이 가능하고
블럭 밖에서는 어디에든 사용할 수 있다.