Java Reference
In-Depth Information
(the iterator of the for loop) is added to the list and takes the value 30 (from the age variable). This
is exactly what you should expect. See Figure 6-13.
figure 6-13  
Next, the program steps into the recalculate method and the variables associated with the method
are displayed: fundAmount = 10000 and rate = 0.1 . See Figure 6-14.
Notice in Figure 6-15 how a variable is highlighted in yellow when its value changes. After the
method body is executed, the result is fundAmount = 11000 , just as you would expect for a 10%
increase.
Next, the program returns to the for loop and you can watch the iterator i increase to 31 . See
Figure 6-16.
figure 6-14  
Search WWH ::




Custom Search