Revise Java How-To to avoid usage of deprecated API
Revise Java How-To to avoid usage of deprecated API

This revises the API usage in the examples by following
the API suggestions from the deprecation notes.

Fixes #429

google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink