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.