java codes for taing search engine