Theres a few to choose from.. i Personally use GTGE
www.goldenstudios.or.idtheres quite a few small samples to get you up and running in no time. i found it really easy to understand as i learned it at the same time i started learning java.
It might not be as powerfull as some other game api's but its a good starting point to learn the basics(sprites, sound, etc etc).