标签:pac logs span print 变量作用域 div blog system dem
package com.demo; import org.junit.Test; public class VariableTest { int i = 9; @Test public void say() { System.out.println(i); System.out.println(j); } int j = 10; }
运行结果:
9 10
标签:pac logs span print 变量作用域 div blog system dem
原文地址:http://www.cnblogs.com/BaiLaowu/p/6747454.html