There is an abundance of java tutorials and if you are new to the language you really should spend a few hours going through the basics.
<http://java.sun.com/docs/books/tutorial/>
This session is no substitute for that. What it is, is a series of working examples that seeks to show the java way of doing certain tasks typically associated with languages like C. Our examples look at working on the command line in a UNIX enviroment and we look at command line arguements and rudimentry file IO.
IO/URL:
References:
http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html