aspose file tools
The moose likes Beginning Java and the fly likes byte... x Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "byte... x" Watch "byte... x" New topic
Author

byte... x

Ramm Kummar
Greenhorn

Joined: Feb 10, 2009
Posts: 26
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12929
    
    3

The "..." notation is to specify that the method has a variable number of arguments. See Varargs.

No, this does not mean the same as go(byte x, byte y). It is more or less the same as this:


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2896
    
    1

Its called varargs
You can pass an arbitrary number of arguments to the method.New feature added in Java 5
More information provided by varargs + Java Google


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

Hmm... Sachin your name is weirdly same as Sachin Ramesh Tendulkar. Is this your original name because according to the javaranch naming policy, you have to use your actual name as your display name...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2896
    
    1

Ankit Garg wrote:Hmm... Sachin your name is weirdly same as Sachin Ramesh Tendulkar

http://www.coderanch.com/t/437097/Java-General-beginner/java/Blocks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: byte... x
 
Similar Threads
var-arg and array problem
Using Final Keyword & Casting
Method Variable
Increment operator
What is the output?