Presentation is loading. Please wait.

Presentation is loading. Please wait.

Exercise 1 Declare a constant of type int called SIZE and initialize it to value 10 Declare two int arrays of size “SIZE” Assume that those int arrays.

Similar presentations


Presentation on theme: "Exercise 1 Declare a constant of type int called SIZE and initialize it to value 10 Declare two int arrays of size “SIZE” Assume that those int arrays."— Presentation transcript:

1 Exercise 1 Declare a constant of type int called SIZE and initialize it to value 10 Declare two int arrays of size “SIZE” Assume that those int arrays have been initialized. Write a for loop that iterates “SIZE” number of times and multiplies the numbers in each array. For example, the first element in first array should be multiplied with the second array. Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling

2 We have to deal with errors
Early errors are usually syntax errors. The compiler will spot these. Later errors are usually logic errors. The compiler cannot help with these. Also known as bugs. Some logical errors have no immediately obvious manifestation. Commercial software is rarely error free. Objects First with Java - A Practical Introduction using BlueJ, © David J. Barnes, Michael Kölling


Download ppt "Exercise 1 Declare a constant of type int called SIZE and initialize it to value 10 Declare two int arrays of size “SIZE” Assume that those int arrays."

Similar presentations


Ads by Google