1. Learn
  2. /
  3. Courses
  4. /
  5. Data Types and Exceptions in Java

Connected

Exercise

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.

Instructions

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.