API:Client code/Java/th