The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
The following code causes an exception error:
import java.io.BufferedReader;Â
import java.io.IOException;Â
import java.io.InputStreamReader;Â
import java.util.ArrayList;
public class Ex02 {
   public static void main(String[] args) throws IOException {
       BufferedReader userInput = new BufferedReaderÂ
           (new InputStreamReader(System.in));
       ArrayList<String> myArr = new ArrayList<String>();
       myArr.add("Zero");
       myArr.add("One");
       myArr.add("Two");
       myArr.add("Three");       Â
       System.out.println(myArr.get(6)_;
            Â
   }Â
}
Starting with this provided code, add the following functionality:
-----------