System.out.println 报错: 只能运行在方法体内哦, 类里面只包含属性和方法哦,注意! 类里面包含属性和方法 所以, System.out.println,只能放在方法体内运行,不能放在类里、方法外哦