This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Method Invocation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Method Invocation" Watch "Method Invocation" New topic

Method Invocation

Shruti Sharma
Ranch Hand

Joined: Mar 25, 2010
Posts: 55

I have a piece of code as below:


public Object selectiveSelect(String finder, String[] collList) throws ApplicationException,
FrameworkException {
Object[] parm = {getAbstractCargo(), collList };
return select(finder, parm);

Can someone tell what does the statement below mean?

Object[] parm = {getAbstractCargo(), collList };

Thank you,
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Please UseCodeTags when posting code. It will highlight your code and make it much easier to read. It probably will also increase the number of people helping you. You can edit your post with the button.

It creates an Object array with a length of 2 with the elements initialized to getAbstractCargo() and collList.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
It is sorta covered in the JavaRanch Style Guide.
subject: Method Invocation
Similar Threads
Writing RTF files from Java Swing DefaultStyledDocuments
How do I do a 'like' with a numeric value using entities?
how to make information within a form accessible to multiple jsp or java classes.
what is the type of Base?
IBM 286 - patterns