A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
convension when I am using List called by nickname in the plural?
Joined: Nov 23, 2009
May 19, 2010 11:18:04
Hi, is a convension when I am using List and I call by nickname in the plural?
List<Name> names = new ArrayList<Name>();
Joined: Oct 27, 2005
May 19, 2010 12:42:48
I do it all the time. But it's not a "nickname", it's a variable name.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Joined: Sep 29, 2008
May 19, 2010 15:54:21
It's more than just convention, it's common sense--if you have more than one, it's plural. (Of course, it might have zero or one, too, but the potential is there :)
I agree. Here's the link:
subject: convension when I am using List called by nickname in the plural?
toString() method explaination
Thinking in JAVA/Text Pad
Id key in .hbm.xml
Need help selected text fields visible for particular option from drop down list in JSP(struts)
JSP code not working properly
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015