Search machine using java