add some java examples