Lesson 15 - Activity 2 - Can you catch a thrown exception?

Time: 15 minutes

Purpose: This activity helps you get familiar with catching exceptions

Introduction: Youโ€™re had experience asserting for exceptions, now learn to catch them

Task: Write a method public int convertString(String s) which wraps around public static int parseInt(String s)

If NumberFormatException is thrown, it will return a value of 0.