Yes! I fell off the earth again...I keep doing that....but I try & not give up....come back / get back on the saddle at some point in time...needless to say, I apologize for this behavior...am truly sorry. In restarting this series, which I am actually quite … Continue reading The Designer’s Block – Focus on the Corridor Conversation
Category: Java
Did you know that the Arrays.asList() method returns a fixed size list?
I guess this is the problem when you do not read the `javadoc` in detail of the methods you use. Following is quoted from the javadoc of the Java SDK. Returns a fixed-size list backed by the specified array. (Changes to the returned list "write … Continue reading Did you know that the Arrays.asList() method returns a fixed size list?
Did you know that you can define more than one class in a .java file?
As we go down our years of learning and coding in Java, we tend to forget some basics. Did you know that you can define more than one class in the same java file? The only condition being that among the classes defined in a … Continue reading Did you know that you can define more than one class in a .java file?
Did you know about Local Classes in Java?
Did you know that you could declare classes inside code blocks i.e. methods, constructors, static blocks, etc? Such classes are called Local Classes. For example, the following would compile and run: public class SayHello { public void sayHello(final String name) { // … Continue reading Did you know about Local Classes in Java?