class Browser {

  public static void main(String[] args) throws Exception {

    if (Desktop.isDesktopSupported()) {
      Desktop.getDesktop().browse(new URI("http://www.example.com"));
    }
  }

  public void browse(File file) throws IOException {<FILL_FUNCTION_BODY>}
}

    if (Desktop.isDesktopSupported()) {

      Desktop.getDesktop().browse(file.toURI());
    } else {
      throw new UnsupportedOperationException("Browser not supported.");
    }
  
<no_super_class>