Basic Selenium Program

Write a program to search for Testing openings in google.com

------------------------------------------------------------.
go to file->new->class.
give the class name as "googlesearch" in name field.
Click the checkbox public static void main(String[]args).
click finish.
------------code for above class.
public class googlesearch{
Defaultselenium selenium =new Defaultselenium("localhost",4444,"*firefox","http://");
public static void main(String[]args){
selenium.start();
selenium.open("http://google.co.in");
selenium.windowmaxmize();
selenium.type("lst-ib","testingopenings");//lst-ib=property of textbox
selenium.click("btn"); //btn=property of searchbutton

}

}