Skip to content

Instantly share code, notes, and snippets.

@up1
Created May 25, 2015 11:21
Show Gist options
  • Save up1/5ab9aba02e583a72a04a to your computer and use it in GitHub Desktop.
Save up1/5ab9aba02e583a72a04a to your computer and use it in GitHub Desktop.
Code
public String say(int number) {
if( number%3 == 0 )
return "Fizz";
if( number%5 == 0 )
return "Buzz";
return number+"";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment