Add some minor fixes in java programming guide