This discussion is archived
3 Replies Latest reply: Apr 2, 2013 11:44 AM by 973635 RSS

executing class and method inside a string

999911 Newbie
Currently Being Moderated
Hi,

I am new to Java. We are reading Java classes and methods from excel fiile in one column. After reading, it comes in a String. I don't how to execute from the String at runtime. Kindly someone help me.

Eg. strTest = "Test.Open";

In this "Test" is my class name and "Open" is funtion in the class. If we execute or call strTest, function Open should be called from the class.

Thank you!

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points