Documenting your code is very important for two reasons. First, it allows you or another programmer to follow the logic of your program. This creates a guide for debugging and for upgrading/enhancing your methods. Second, comments – specifically javadocing – provides those using your methods, variables, and constructors with instructions on when/how to use them. The link above contains a comprehensive guide on how to properly comment your code and how to use a useful tool called Checkstyle.
This tutorial guides you through the basics of programming and covers some advance topics. Control statements, loops, input and ouput streams, and file i/o is covered.
To become better at programming, practice is definitely needed. On the CS1322 website, there are numerous problems you can work. The above link provides the soulutions to some of the problems.
Although we do not spend much time reviewing recursion, the concept is an important one. The tutorial above will hopefully erase any discomfort you have with the programming technique.
Inheritance is often a very difficult concept to master. It is important to understand the basics because it is also very important in object oriented programming. Above is a small tutorial on the subject.
Inheritance, Polymorphism, and Dynamic Binding are tough concepts to understand. They become even more confusing when all of them are mixed together. Above is a very difficult tracing problem explained in great detail. On almost every test, there is some kind of tracing question. Knowing how to work the hard problems will guarantee that you can work the easy ones.Tracing Code
This tutorial covers GUI components mostly provded in Swing. It discusses in detail how to instantiate components, highlights the most important methods in the respective classes and finally describes the best or easiest way to implement event handling with each of the Components.