A good answer might be:The improvements are seen below. | ||
Improved MethodSince methods can be used many times with different data, it is often worthwhile to have them check for errors. You only have to write the additional code once, and it might keep your program from crashing. Here is the improved printRange():
Here is the testing class with several calls to printRange():
| ||
QUESTION 11:What will this program print out? Click Here after you have answered the question |