Create a java file with an array of 5 integers
Not what you're looking for?
Write a program named GoTooFar in which you declare an array of five integers and store five values in the array. Initialize a subscript to zero. Write a try block in which you access each element of the array, subsequently increasing the subscript by 1. Create a catch block that catches the eventual ArrayIndexOutOfBoundsException, and then print to the screen the message, "Now you've gone too far." Save the program as GoTooFar.java
Purchase this Solution
Solution Summary
The solution creates a Java file with an array of 5 integers.
Purchase this Solution
Free BrainMass Quizzes
C++ Operators
This quiz tests a student's knowledge about C++ operators.
Basic Networking Questions
This quiz consists of some basic networking questions.
Basic Computer Terms
We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.
Basic UNIX commands
Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.
Word 2010: Tables
Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.