1. เรียนรู้
  2. /
  3. Courses
  4. /
  5. Data Types and Exceptions in Java

Connected

Exercises

Finally

Now, modify the previous SplitTheBill calculator of the last exercise to use a finally to print out the bill per individual, even when an Exception was caught.

คำแนะนำ

100 XP
  • Add a try and the start of the try code block.
  • Finish the catch code block and add a finally code block.
  • Finish the finally code block.