Create apt-get install for own software

Create apt-get install for own software

I have develop java software which i have idea to create repository for
it.So every user which want to install my application can install by
typing "apt-get install myappname".
How i can build it ?