Added a few java examples.