Inner classes can refer to mutable instance fields if the inner-class expression occurs in an instance context, but this is not the same thing.
如果内部类表达式出现在某个实例上下文中的话,内部类可以引用可变的实例域instance field,但这不是同一回事。
The interesting thing to note about the format string in this example is that the same local variable (cmdName) occurs multiple times in the same string.
对于这个示例中的格式字符串,有意思的一点是:同一个局部变量 (cmdName) 在同一个字符串中出现了多次。
应用推荐