Streaming programming guide typos

Fix a bad Java code sample and a broken link in the streaming programming guide.