• Post Reply Bookmark Topic Watch Topic
  • New Topic

switch using enum : error !  RSS feed

 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to pass an enum as an parameter to a method. I get an error in the following code :



Here is the error i get while compiling :



where am i making a mistake ?
 
Mohamed Sanaulla
Bartender
Posts: 3179
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that the method name declared and the method name you are trying to invoke are similar?
 
Ganesh Malaichamy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has to be d.editMe(u); not d.editME(u);

 
Mohamed Sanaulla
Bartender
Posts: 3179
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ganesh malaisamy wrote:It has to be d.editMe(u); not d.editME(u);


I would want OP to identify that. But clearly the compiler message shows the error.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, man ! doh ! how did that escape my attention...sorry, i will be 100x careful next time before i post.
Thanks to all.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!