wood burning stoves 2.0*
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: 688

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: 4344
    
    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: 688

Matthew Brown wrote:It's exactly the same as calling any other method with multiple parameters. You separate them with commas.
thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to give multiple parameters to constant in enum ?
 
Similar Threads
iPad
iPad. What's the difference?
Trying to learn enumerated types of class
what is the problem with my java code
what is getter/setter in java ?