会提示错误 Variable 'sourceCode' is accessed from within inner class, needs to be final or effectively final外部常量加了final后会提示错误 Cannot assign a value to final variable 'sourceCode'
把sourceCode放到方法外面去
public class net{
private static String sourceCode = null;
}
定义成员变量(类变量),不要定义成局部变量。