会提示错误 Variable 'sourceCode' is accessed from within inner class, needs to be final or effectively final外部常量加了final后会提示错误 Cannot assign a value to final variable 'sourceCode'
2条回答 默认 最新
- 立青_ 2022-02-14 09:17关注
把sourceCode放到方法外面去
public class net{ private static String sourceCode = null; }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用