RU beehive logo ITEC dept promo banner
ITEC 120
2010fall
ibarland

homeinfolectslabsexamshws
tutor/PIsjava.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/PIsjava.lang docsjava.util docs


©2010, Ian Barland, Radford University
Last modified 2010.Sep.10 (Fri)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme