Download presentation
Presentation is loading. Please wait.
Published byAugusta Melanie Wauters Modified over 5 years ago
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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.