Downloading historical stocks prices



I'd like to download historical stock prices from Yahoo or Google
Finance into Java. Any advice is appreciated.
.