This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Method Invocation

 
Shruti Sharma
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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,
-Shruti
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic