Win a copy of Learn Spring Security (video course) this week in the Spring forum!
    Bookmark Topic Watch Topic
  • New Topic

Reflection on self

 
Jay Richards
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi. I need to call a method from the class it self i.e.

public class Demo{

//call a method with parameter
public void execute(String methodName,HashMap params){
//example methodName=sampleMethod1
//i need to call the sampleMethod1 method from this class
}

//call a method without a parameter
public void execute(String methodName){
//example methodName=sampleMethod2
//i need to call the sampleMethod2 method from this class
}

//method to be called
public void sampleMethod1(HashMap params){
}

//method to be called2
public void sampleMethod2(){
}
}

Hope someone could show me. thanks a lot in advance.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question if multiple forums. We want to see the discussion take place in one place so people don't waste time replying without seeing what others have already said. Followups go here. Thanks.
[ May 02, 2005: Message edited by: Jim Yingst ]
 
    Bookmark Topic Watch Topic
  • New Topic