Here you can find some examples on how to use tynycc4j:
First of all you'll need to gather from http://tiny.cc/api-docs an apiKey, and login will be your user login.
After having both apiKey & login, you just need to code in following ways.
1.- Shorten
Assuming http://tiny.cc is the url we want to shorten:
Tinycc4jImpl tiny= new Tinycc4jImpl();
ShortenResponse shorten = tiny.shortenUrl(<apikey>, <login>, "http://tiny.cc");</login></apikey>
2.- Expand
Assuming withdz is hash that you received from previous call:
Tinycc4jImpl tiny= new Tinycc4jImpl();
ExpandResponse expand = tiny.expandUrl(<apikey>, <login>, "withdz");</login></apikey>
3.- Total Clicks
Assuming withdz is hash that you received from shorten call:
Tinycc4jImpl tiny= new Tinycc4jImpl();
TotalClicksResponse totalClicks = tiny.totalVisitsUrl(<apikey>, <login>, "withdz");</login></apikey>
Objects ShortenResponse, ExpandResponse and TotalClicksResponse are defined on javadoc that you can download.