Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

java how to open a link

Runtime rt = Runtime.getRuntime();
String url = "https://www.example.com";
try {
	rt.exec("rundll32 url.dll,FileProtocolHandler " + url);
} catch (IOException ioException) {
	ioException.printStackTrace();
}
Comment

PREVIOUS NEXT
Code Example
Java :: calculate pi in java 
Java :: android parse date 
Java :: leap year program in java 
Java :: convert object to map scala 
Java :: find number of days between two local dates in java 8 
Java :: since when can java command compile 
Java :: stackoverflow spring regex 
Java :: string array to stream 
Java :: difference between premitive and non-premitive 
Java :: functional remove java 
Java :: how to change a bukkit chat format 
Java :: java replace all space with underscore 
Java :: How to execute Shell Commands with Java and print the output directly while executing the command 
Java :: how to get color from color file in adroid studio 
Java :: method to check parameters in java 
Java :: file to multipartfile in java 
Java :: How to find the power of a number efficiently in Java? 
Java :: hellow world java code 
Java :: set drawableleft programmatically android 
Java :: change material fab color android 
Java :: java write a file line by line 
Java :: print hashtable in java 
Java :: concurrent modification exception 
Java :: ubuntu java development kit 
Java :: infinity constatn in java 
Java :: list extension quarkus 
Java :: arrays.aslist.add 
Java :: paper api maven 
Java :: spigot despawn entity 
Java :: round off java 2 decimal places 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =