Adding Java assignments