RU beehive logo ITEC dept promo banner
ITEC 120
2012fall
dbraffitt
ibarland

homeinfolectslabsexamshws
tutor/PIsbreeze (snow day)
Object120 + its docsjava.lang docsjava.util docs

lect02b
local variables

Variables vs. one-big-return

In class we'll write buffetPrice in two different ways: using just one big return statement, and another using a variable to store a subresult.

To do, with your neighbor: Re-write at pizzaArea to use a variable.

To do: Re-write last3 so that it uses just one big return statement.

homeinfolectslabsexamshws
tutor/PIsbreeze (snow day)
Object120 + its docsjava.lang docsjava.util docs


©2012, Ian Barland, Radford University
Last modified 2012.Sep.10 (Mon)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Powered by PLT Scheme