This java method doesn't compile. It allows newName but not lastName. Can anyone explain why? Thanks!
void doStuff(String firstName, final String lastName)
{
final String newName = "John";
switch(firstName)
{
case newName:
case lastName:
}
}