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");
2.- Expand
Assuming withdz is hash that you received from previous call:
Tinycc4jImpl tiny= new Tinycc4jImpl();
ExpandResponse expand = tiny.expandUrl(<apiKey>, <login>, "withdz");
3.- Total Clicks
Assuming withdz is hash that you received from shorten call:
Tinycc4jImpl tiny= new Tinycc4jImpl();
TotalClicksResponse totalClicks = tiny.totalVisitsUrl(<apiKey>, <login>, "withdz");
Objects ShortenResponse, ExpandResponse and TotalClicksResponse are defined on javadoc that you can download.