Search:

Type: Posts; User: Sai

Search: Search took 0.15 seconds.

  1. Replies
    6
    Views
    3,807

    Re: Accessing a method of one class in another class

    but there is a problem..when i can use "t1" directly why will i store it in a string variable?...
    the problem is i can just use the string(i.e classname) so , typecasting with t1 ( as in (t1) O)...
  2. Replies
    6
    Views
    3,807

    Re: Accessing a method of one class in another class

    I have tried

    Class<?> classDefinition = Class.forName(className);

    but still its throwing an exception :confused:
  3. Replies
    6
    Views
    3,807

    Re: Accessing a method of one class in another class

    thanks helloworld922...that does work :-bd

    but i am encountered with this exception always...which is not allowing me from creating the object

    Severity and...
  4. Replies
    6
    Views
    3,807

    Accessing a method of one class in another class

    Hi,
    I am trying to access the method of one class in another class through an object of the former class.
    Constraint is that i have the class name of the first class in a string variable.
    i tried...
Results 1 to 4 of 4