I just wanted to list some of my favourite Java shortcuts that I like to use when using ColdFusion
java.lang.String.getBytes() – a useful way of working out how many bytes in a string. This can be interesting to use to check approximatley how much memory you are using when storing long strings in a shared scope.
java.lang.reflect.Array – The man when it comes to dealing with Java native arrays.
java.util.Vector.addAll() – Since all CF arrays are vector, this is a easy way of adding an entire array into another without having to manually enter every single item. i.e.
a = arrayNew(1);
a = "1";
a = "2";
a = "3";
b = ArrayNew(1);
I think that's all the ones I usually use at the moment – what other Java snippets do you use to save yourself time?