import java.io.*;
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
class test{
static void display()
{
System.out.println("this is display");
}
public static void main(String args[]) throws Exception
{
String s="test";
((test)Class.forName(s).newInstance()).display();
}
}
import java.awt.*;
import java.util.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
class test{
static void display()
{
System.out.println("this is display");
}
public static void main(String args[]) throws Exception
{
String s="test";
((test)Class.forName(s).newInstance()).display();
}
}
No comments:
Post a Comment