| Author |
byte... x
|
Ramm Kummar
Greenhorn
Joined: Feb 10, 2009
Posts: 26
|
|
|
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12929
|
|
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
|
|
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
|
|
|
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
|
|
http://www.coderanch.com/t/437097/Java-General-beginner/java/Blocks
|
 |
 |
|
|
subject: byte... x
|
|
|