Category Archives: tips
Reflection Tip – Dynamically calling methods
There are often times when you need to call a method but you do not know the name of the method until runtime. I came across this issue during my Thesis. Our problem was as follows: How do we dynamically map between an object type and a method in the sub class of PublishableServer that [...]
Also posted in Reflection, java Leave a comment
Ordering a list of Objects
This Java tip relates to functionality that has been around for quite a while but a lot of people are still not aware of it. There are many occasions when you may need to order a list of data objects. Luckily the Java Collections Framework provides utilites to allow objects to be easily ordered. The [...]
Also posted in Collections, java Leave a comment
Java List Tip
As I mentioned before, every Java programmer must own Effective Java by Joshua Bloch. Here is one of the tips from the book. It discusses is "Minimizing the scope of local variables" (Item 29). Part of this tip, that might be of interest to developers here is: Iteration of List's In his book, Bloch discusses [...]
Also posted in java, list Leave a comment

Add an Icon to your website….