会提示错误 Variable 'sourceCode' is accessed from within inner class, needs to be final or effectively final外部常量加了final后会提示错误 Cannot assign a value to final variable 'sourceCode'

会提示错误 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;
}