标签: java
这个java方法没有编译。它允许newName但不允许lastName。有谁能解释为什么?谢谢!
void doStuff(String firstName, final String lastName) { final String newName = "John"; switch(firstName) { case newName: case lastName: } }