Showing posts with label ja. Show all posts
Showing posts with label ja. Show all posts

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);}
}
}