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
(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.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Welcome to Quarkus5m 31s
-
(Locked)
Introducing the docs4m 40s
-
(Locked)
Starting a project6m 44s
-
(Locked)
Dependency Injection in Quarkus6m 48s
-
(Locked)
Command mode Quarkus5m 13s
-
(Locked)
Configuration properties in Quarkus5m
-
(Locked)
Logging in Quarkus4m 39s
-
(Locked)
Challenge: Fizz Buzz1m 36s
-
(Locked)
Solution: Fizz Buzz4m 6s
-
-
-
-