Document Summary

Cse 174 - lecture 9 - debugger and arrays. Useful when having lots of variables, for example. Allows us to execute our code step by step. Runtime errors- some kind of exception gets thrown crash. logic errors- runtime errors that don"t crash, but give unexpected results. Run program one statement at a time to see values of all variables as program is running. It works by setting a breakpoint- where program will freeze and you can analyze value of variables. Follow step by step the values of the code. Consider needing to store the temperatures of multiple days. Arrays can read one hundred temperature values, compute the average, and find out how many numbers are above average. Array is a collection of a sequence of values/data that are all of the same type. How to create an array: double[] templist = new double[100]; templist [reference] is array reference variable. This array created 100 spaces with each initialized to 0. 0.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents