API:Client code/Java/tr