aspose file tools*
The moose likes Java in General and the fly likes Is it possible to invoking a method by getting its name in string... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is it possible to invoking a method by getting its name in string..." Watch "Is it possible to invoking a method by getting its name in string..." New topic
Author

Is it possible to invoking a method by getting its name in string...

Pankaj Mittal
Ranch Hand

Joined: Jul 09, 2008
Posts: 32
I want to invoke a method whose name I've got in string.....


2008 SCJP(5.0) 88%
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You can do this sort of thing via Reflection. Have a read though that link it should set you on your way.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Pankaj Mittal
Ranch Hand

Joined: Jul 09, 2008
Posts: 32
Thanks buddy !!
I found the solution...

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to invoking a method by getting its name in string...