Ready: Update Java samples

This PR updates existing Java code samples to account for changes in how `Location` works