Category Archives: it makes your code look old

Note to Myself: String Concatenation

In the effort of trying to make my java code NOT look like it was written 10 years ago, here’s another note to myself. Use String.format for concatenating strings, especially when concatenating strings within strings. In other words… Do less … Continue reading

Posted in it makes your code look old, java | Leave a comment

Note to Myself: Iterators and For-Each Loops

This is a note to myself. When coding in java, stop using Iterators where you can by replacing them with a for-each loop. So in other words… Stop doing this: for ( Iterator<?> vectorIterator = vector.iterator(); vectorIterator.hasNext();) { System.out.println( (String) … Continue reading

Posted in it makes your code look old, java | Leave a comment