---why not just add the " " to your input argument? It would cut down on the clutter in your println's. I like to minimize the variables that I use.
---- The basic functionality of the pre and post increment operators is the same in Java and C++. Personally, I think that using the post increment operator will result in code that is initially more intuitive and less error prone. Indexing arrays in a loop is an area that the pre-increment operator would require you to either modify the beginning of your loop to something other than zero or make sure that your first element is set to null. It's not always intuitive to remember this.
6) Rather than accumulating the string, why don't you just print it as you go along?
I did this in my original version of the project but thought I was creating too many String objects every time I did System.out.println( string1 + string2 ) ;. So I decided to use the StringBuffer to reduce the number of objects created.
---- You really don't need to create any objects....
Originally posted by Paul Wheaton:
There are a lot of things I prefer that are not added to the style guide. If the style guide gets too big, people won't read it.