Fizz Buzz Java kata
Nov 01, 11 by Juan Lebrijo about blog, agilism, Eclipse, Java
At XPWeek2011 we learned TDD coding, and the importance of OOP principles to develop applications. I spent great days there, thanks to Carlos Ble and iExpertos. Continuing with the last kata series. I will show you how I solved FizzBuzz kata, maybe not the best, but I like the solution because the expressive final code:
  • say(FIZZ, WHEN_FIZZ_FACTOR);
  • say(BUZZ, WHEN_BUZZ_FACTOR);
  • elseSayNumber();
Here you have KataFizzBuzz Here you have the code: fizzbuzz.zip And here you have the video: