1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Data Types and Exceptions in Java

Connected

अभ्यास

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.