how get the running java program filename?
I want to print the filename of the java program that I created.
how get the running java program filename?
I want to print the filename of the java program that I created.
try daw ni:
PHP Code:
public class MyClass {
public static void main(String args[]) {
MyClass myClass = new MyClass();
System.out.println("Filename: " + myClass.getClass().getName() + ".java");
}
}
I have another problem
how to use the System.getProperty("user.name"); in applets
I want to get the name of the current user.
Similar Threads |
|