Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to give multiple parameters to constant in enum ?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to give multiple parameter to constant in enum ?
in this way it gives error


 
Matthew Brown
Bartender
Posts: 4567
8
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's exactly the same as calling any other method with multiple parameters. You separate them with commas.
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew Brown wrote:It's exactly the same as calling any other method with multiple parameters. You separate them with commas.
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic