This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes method declaration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "method declaration" Watch "method declaration" New topic
Author

method declaration

Swathi Rangudu
Greenhorn

Joined: Sep 07, 2008
Posts: 4
How to declare a method with n-number of arguments in java?Please give me any idea..

Thanks in advance...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41124
    
  45
Do you mean varargs?


Ping & DNS - my free Android networking tools app
Swathi Rangudu
Greenhorn

Joined: Sep 07, 2008
Posts: 4
I mean can we declare a method like printf() in C (example) which it takes n-number of arguments at runtime
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19654
    
  18

Originally posted by Ulf Dittmer:
Do you mean varargs?

Quoted for relevance and importance. Just read it


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Originally posted by Rob Prime:
. . . Just read it


Read this Java Tutorial page too.
Swathi Rangudu
Greenhorn

Joined: Sep 07, 2008
Posts: 4
yes....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: method declaration
 
Similar Threads
NX: When should I throw DuplicateKeyException?
Changin font in a JTextArea
Finalization Method
Sharpen your Pencil - Page 323 in HFEJB
garbage collection