API:Client code/Java