PREREQUISITES:
- you should have internet connection
- java(JRE) should be installed on your machine ( download jre from here)
STEPS TO FOLLOW:
- Open notepad
- Copy below code and paste it in NOTEPAD and save as "blog.java" in any drive ex: D drive
import java.io.*;
public class Blog
{
public static void main(String args[])throws IOException
{
try
{
for(int i=0;i<100;i++)
{
System.out.println(i);
Process p=Runtime.getRuntime().exec("cmd /c start http://www.studentkalasala.blogspot.in/");
}
}
catch(IOException e1)
{System.out.println(e1);
}
}
}
3. Replace your blog address in above code
4.Save the program as Blog.java in D drive
5. open command prompt
6. go to D drive
6. go to D drive
7. execute the program (D:/javac Blog.java) press enter
8. run the program (D:/java Blog) press enter
9 then your blog will be opened 100 times with in 5 minutes
8. run the program (D:/java Blog) press enter
9 then your blog will be opened 100 times with in 5 minutes
No comments: