1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import java.io.IOException; import java.net.URL; import java.net.URISyntaxException; import java.awt.Desktop; public class Read { public static void main(String[] args) throws IOException { URL url=null; url = new URL("https://www.jesusninoc.com/"); try { Desktop.getDesktop().browse(url.toURI()); } catch (IOException e) { e.printStackTrace(); } catch (URISyntaxException e) { e.printStackTrace(); } } } |