If you are trying for client-server, you need to decide how you are going to design it. RMI? or using a CORBA tool etc.
In addition, you probably don't want to create a database yourself (Well there are SOME folks out there who might. . .) so you just need to decide what database (Access, Oracle, DB2 etc) that you will use, and set up some
JDBC access.
Are you sure you just want client server examples? Is there something wrong with
applets or
servlets?
For lot's of code examples take a look at:
www.javaboutique.com