Java Reference
In-Depth Information
figure 6-15  
When you step into the recalculate method again, fundAmount is back to its original 10000 , as
shown in Figure 6-17.
So now you can see that the newly calculated fundAmount is not being stored anywhere after the
recalculate method is exited. This leads to the same conclusion as before, that the method should
return a value, and the main method should reuse the returned value.
figure 6-16  
Search WWH ::




Custom Search