File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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?
Thinking in JAVA/Text Pad
JSP code not working properly
toString() method explaination
Need help selected text fields visible for particular option from drop down list in JSP(struts)
Id key in .hbm.xml
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014