• Post Reply Bookmark Topic Watch Topic
  • New Topic

byte... x  RSS feed

 
Ramm Kummar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16059
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!