tiger0516
asked on
What does the three dots in method parameters mean (like method (String... s)
Code snippet:
AmazonECS service = new AmazonECSQuery(accessKeyId , associateTag);
...
ItemLookupRequest request=new ItemLookupRequest();
...
ItemLookupResponse response = service.itemLookup(request );
Eclipse complains that
The method itemLookup(ItemLookupReque st...) in the type AmazonECS is
not applicable for the arguments (ItemLookupRequest) Test/src/com/
amazon/webservices/test AWSTest.java
Thanks
AmazonECS service = new AmazonECSQuery(accessKeyId
...
ItemLookupRequest request=new ItemLookupRequest();
...
ItemLookupResponse response = service.itemLookup(request
Eclipse complains that
The method itemLookup(ItemLookupReque
not applicable for the arguments (ItemLookupRequest) Test/src/com/
amazon/webservices/test AWSTest.java
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It the length is variable, why I get a complier error when passing just one?
are you sure you are using the same class as expected (and not one with samne ane from another package)
:-)