I have a code that has run before, but now i cant run it. i know there should be a way...
--- Update ---
HooRAY, I found the way
package helloworld;
Type: Posts; User: alieh
I have a code that has run before, but now i cant run it. i know there should be a way...
--- Update ---
HooRAY, I found the way
package helloworld;
ok, really Sorry
package a;
public class A {
<code>
package a;
public class A {
public A(){System.out.println("a constructed");}
public class B{
tnx for ur reply
i used this code:
public static void main(){
outer o=new outer();
inner i=o.new inner ();
i=(inner)Class.forName("a.outer$inner").newInstance();
}
the error was...
i dont know how to create an instance of an inner class using classloader? here is my code in java.
plz help. emergency question:-ss
package a;
public class outer{
public outer(){}
...