Everyday in every way, we get a little better.
Bobby Smallman wrote:
Everyday in every way, we get a little better.
Bobby Smallman wrote:You can absolutely do that. But I was trying to make the adding of the animal object to the ArrayList in the constructor of the object to streamline the creation of the object. It isn't a big deal to do a animals.add(Animal) for each of the objects in main when there are only a couple of them, but wouldn't running it in the constructor streamline the process for when you have TONS of entries?
SCJP 1.5 | SCWCD 5 | SCJP 6.0
[url]http://a2zjava.webs.com[/url] - Online training for Java/JSPs and Servlets/SCJP/SCWCD
http://soniyaahuja.webs.com
Everyday in every way, we get a little better.
Everyday in every way, we get a little better.
Thank youYesterday, I wrote:Please explain more . . .
SCJP 1.5 | SCWCD 5 | SCJP 6.0
[url]http://a2zjava.webs.com[/url] - Online training for Java/JSPs and Servlets/SCJP/SCWCD
http://soniyaahuja.webs.com
Everyday in every way, we get a little better.
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|