How can I extract the main classname of a java file ?
I am doing this in php!
I will read the whole java program as a string!
Please help!
<any_type/public/private/static> class **MainClass** {
//Could be anything over here!
public static void main(String[] args) {
System.out.println("Hello World!");
}
}