Skip to content

Instantly share code, notes, and snippets.

@loganintech
Created June 22, 2015 06:39
Show Gist options
  • Save loganintech/09270e53ade45d77a1d7 to your computer and use it in GitHub Desktop.
Save loganintech/09270e53ade45d77a1d7 to your computer and use it in GitHub Desktop.
What does this print assuming parameters[0] is not sent.
@Override
public String execute(String channel, String sender, String... parameters) {
try {
System.out.println(parameters[0]);
}
catch(Exception e) {
parameters[0] = "fish"; //It doesn't matter as long as it is not continue. We didn't check if there was no parameters.
}
if(!parameters[0].equalsIgnoreCase("continue")) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment