Thanks for the quick replyfred rosenberger wrote:First, welcome to the javaranch. Glad you came by!
You may want to read some of this. It gives you a good idea how to get the most from this site.
Many folks are going to read your post and not bother. It appears to the reader like you are asking us to do your work for you - i.e. that you've put NO effort at all into figuring things out.
If you have specific questions, then by all mean, ask them, but a blanket post of "what does all this mean" will turn many folks off from helping you.
Now, to answer your specific question... the first line is called an import statement. It's telling java that you are going to use some special, pre-written classes, and where to find them. Java will use that when it parses your code. If it is not obvious where the class is, it will basically look in the directories named in the various import statements (you can have more than one import).
You can write your code without ever using imports, but then you'd have to refer to some classes by really long names. using the import saves some typing.