|
You need to create the array first, then initialise its elements:code:
|
# ¿ Mar 11, 2008 01:41 |
|
|
# ¿ May 4, 2024 12:17 |
|
January is month zero, so you'll need to subtract one from the months before setting the calendar.
|
# ¿ Mar 27, 2008 01:55 |
|
You can also make ProfitModel.stepTwo abstract:code:
e: ^ also make the inner methods protected
|
# ¿ Jul 14, 2008 17:08 |
|
If you have a public (non-inner) class called Something in package wherever.blah, it has to go into $CLASSPATH/wherever/blah/Something.java. The book probably should've mentioned this, but in future exercises when they have classes like this they mean them to go into separate files. Also, you're missing two }s at the end of the first class.
|
# ¿ Jan 7, 2009 01:05 |