does anybody know how i would go about retrieving info from a website, using java, then placing it in a database. i can make a mock website for the project.

wud the using the URLReader class be going in the right direction

public class URLReader {
public static void main(String[] args) throws Exception {
URL yahoo = new URL("");
BufferedReader in = new BufferedReader(
new InputStreamReader(

String inputLine;

while ((inputLine = in.readLine()) != null)


any help wu be much appreciated