import java.awt.Desktop;
import java.net.URI;
public class Assignment1 {
public static void main(String[] args) {
try {
//paste link in URI("link-you-want-to-browse")
URI uri = new URI("https://codevedanam.blogspot.com/");
Desktop.getDesktop().browse(uri);
}
catch(Exception e) {
System.out.println("Error");
}
}
}
No comments:
Post a Comment