Introduction
Here is the source code for Main.java
Source
//package com.java2s;
import java.io.File;
public class Main {
/**
* Returns an URL for the given local file.
*/
public static String getFileUrl(String localFileName) {
File file = new File(localFileName);
return file.toURI().toString();
}
}