Wednesday 19 February 2014

How to open a web page by using java code?


  java code to open a web page in program



 import java.io.*;
public class mani {
public static void main(String args[])throws IOException{
    try
{
Process p=Runtime.getRuntime().exec("cmd /c start http://gossipbollywoodreviews.blogspot.in/");
}
catch(IOException e1) {System.out.println(e1);}
}
}

No comments:

Post a Comment