Created
May 25, 2015 11:21
-
-
Save up1/5ab9aba02e583a72a04a to your computer and use it in GitHub Desktop.
Code
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
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