Created
August 31, 2010 10:20
-
-
Save marcomoura/558837 to your computer and use it in GitHub Desktop.
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
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
package javaapplication1; | |
/* | |
* kata feito no coding dojo na FATEC-GT | |
*/ | |
/** | |
* | |
* @author @MarcoMoura | |
* @author Marco Rocca | |
* @author Alvaro | |
* @author Cleber Lopes | |
* @author Wellington | |
* @author Bruno | |
* @author Pedro Lemes | |
*/ | |
public class KataFizzBuzz { | |
public boolean isFizz(int numRecebido){ | |
int resto = numRecebido%3; | |
if (resto==0){ | |
return true; | |
} | |
} | |
public boolean isBuzz(int numero){ | |
switch(numero){ | |
case 5:{ | |
return true; | |
} | |
default : | |
return false; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment