From the course: Learning Java 11

Tour of CoderPad - Java Tutorial

From the course: Learning Java 11

Tour of CoderPad

- [Instructor] These interactive code challenges are hosted by CoderPad, and they appear in the same area of the course page where you watch the courses videos. We recommend using a desktop browser for the best experience, but you can use the LinkedIn Learning mobile app if you prefer. The code challenge has four main areas, instructions, a console for output, a code editor for your answer, and another code editor where you can see how your code is used. You can use these drag handles to allocate space as you'd like. Let's complete this coding challenge. There are comments in the starting code showing you where to put your solution. When you click the Test My Code button, you'll see a message indicating whether your code returned a correct result. If your code isn't successful, you can ask for help. The showExpectedResult and showHints variables determine whether you see the expected results and any hints. Let's change showExpectedResult to true and run it again. The expected result is 19. Now, the code editor in the lower right shows how your solution is used. You can change this code to experiment with different test cases. Let's change 19 to 21. Now the expected result is 21. When you finish each code challenge, return to the course and click the next video to see my solution.

Contents