From the course: Learning Quarkus

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Fizz Buzz

Challenge: Fizz Buzz

From the course: Learning Quarkus

Start my 1-month free trial

Challenge: Fizz Buzz

(upbeat music) - [Instructor] So now we get to our first challenge exercise of this course and this is going to be the infamous FizzBuzz exercise. So there's some rules that we need to define about what FizzBuzz is. So you're going to iterate from one to some number, and we'll talk about the rules on what that some number is. I'm going to ask you to print that number to the console. Now, if the number is divisible by three, instead of printing the number you're going to print fizz. If the number is divisible by five, however, instead of printing the number you're going to print buzz. Now, of course, if it's divisible by both you'll print FizzBuzz. Now, how are we going to do this with Quarkus? First and foremost, I'm going to ask you to create a command mode application. Then I'm going to ask you to have configuration value for the max number. I want you to have logging for when the routine starts and when it finishes.…

Contents