You can find quite a few posts on Google about how to hash a password. As for how to store it, once you've salted and hashed it, insert it into the database as a string. ORMs like Hibernate or EclipseLink will allow you to do this in a database-independent fashion.
Best!
Joe