Created
June 22, 2015 06:39
-
-
Save loganintech/09270e53ade45d77a1d7 to your computer and use it in GitHub Desktop.
What does this print assuming parameters[0] is not sent.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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