Java Snippet (Simple) Failed "This method must return a result of type String"

OK, try also using $name$.equals("Competitors 1") etc in place of $name$==“Competitors 1” throughout your snippet.

Steve