3 Replies Latest reply: Jan 15, 2008 4:19 AM by 807601 RSS

    passign parameter to Class.forName

    807600
      Hi,

      I am deciding which class to use at runtime. I want to pass a String to the constructor of the class which is being invoked. How can it be done ??
      Object o= Class.forName("className").newInstance();
      thanks,

      @debug