Updated Java tutorials 1 and 2

Change-Id: I54e6d83895909fba7b8482df500dfeef9aa4c935