
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Dive into flow control in Java through hands-on coding exercises designed for beginners. Receive practical solution explanations through short video clips and share your feedback to shape future topics.
Implement a static utility method that returns 'even' for even numbers and 'odd' for odd numbers, demonstrated by a demo class printing results for 24 and 124.
Implement a Java function that returns 'positive', 'negative', or 'zero' for inputs like 9, -3, and 0, and compare straightforward and readable flow control solutions.
Implement a static check method in the utils class to return the bigger of two numbers and validate it with a main demonstration that prints the maximum.
Implement a java triangle check by returning true when the sum of any two numbers exceeds the third, as shown with tests for 3,4,5 and 3,4,15.
Implement a static absolute method in the utils class to return a number’s absolute value. Call the method via the class name and test with 12, -12, and 0.
Implement a static check function returning 'even' or 'odd' based on a number, using the ternary operator, and test with 13, 9, 40, and 0.
Explore implementing a Java factorial function with a while loop using a static Utils.factorial method and tests, covering base cases, accumulation, and decrementing the input.
Use the debugger to understand the factorial function by setting a breakpoint, then step over the loop to see number, result, and final return.
Explore complete solutions for every Java flow control exercise and request video explanations for any solution by letting us know.
Take this course and improve your procedural programming skills in Java, and especially in its control statements. Acquire the very basic understanding many tend to skip. Set the foundation for moving forward while having a solid base. Acquire practical experience through extensive practice. Catch up with the very basic Java capabilities in procedural programming, that you weren't familiar with. Take your Java programming skills to the next level. Polish your understanding by watching video clips that explain the solutions for selected coding exercises.
Learn and Master The Flow Control Statements in Java
Learn about the if and the if-else statements in Java
Learn how to create loops using the while statement
Learn how to create loops using the do..while statement
Learn how to create loops using the for statement
Learn how to use the switch statement
Take Your Java Programming Skills to The Next Level!
This course includes multiple coding exercises organized in separate sub-topics. This course includes solutions for all coding exercises. Selected coding exercises have video clips that explain their solutions. Make sure you already have a basic understanding of using the available flow control statements in Java before taking this course.
While completing the coding exercises this course includes, we will be more than happy to get your feedback and requests per those specific coding exercises for which you would like us to prepare video clips that explain them.
This course includes more than 10 coding exercises. When taking this course feel free to let us know in which sub-topic you would like to have more coding exercises and we will make a special effort to develop these exercises.