This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes how to give multiple parameters to constant in enum ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "how to give multiple parameters to constant in enum ?" Watch "how to give multiple parameters to constant in enum ?" New topic
Author

how to give multiple parameters to constant in enum ?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

how to give multiple parameter to constant in enum ?
in this way it gives error




The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4398
    
    8

It's exactly the same as calling any other method with multiple parameters. You separate them with commas.
naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

Matthew Brown wrote:It's exactly the same as calling any other method with multiple parameters. You separate them with commas.
thanks
 
GeeCON Prague 2014
 
subject: how to give multiple parameters to constant in enum ?