Java(24) _变量的作用域
package com.bowen.dong; import java.io.File; /** * * @author bw * @version1.0 */ public class FileTest { public static void main(String[] args) { // TODO Auto-generated method stub { int x=1; System.out.println(x); } //System.out.println(x); 报错 } }