import java.net.*;
public class FileToURL
{
public static void main(String[] argv)
{
Class c = FileToURL.class;
java.net.URL u = c.getResource("FileToURL.java");
System.out.println(u);
}
}
/*
* Exemple d'affichage
* file:/C:/Documents%20and%20Settings/Administrateur/xx/FileToURL.java
*
*/