API Programming in Java?

I’m just going to program some basic API’s for myself. I need some quick code for the WIJ Saturday. So, on that note, how do you make an API. Yes, I know how to export to a .jar. I’m talking about certain things I’m supposed to do. (Can’t think of that fancy word at the moment.) Is a library just a bunch of abstract classes or is there something more to it?