On Mon, 02 Jul 2007 18:11:21 -0000, timjowers <>
wrote, quoted or indirectly quoted someone who said :
> long start = System.currentTimeMillis(); // only compile this line
>in Java 1.4
> //long start = System.nanoTime(); // only compile this line in Java
You can look at a system property at run time and use that in an if.
java.specification.version = 1.6
java.version = 1.6.0_01
java.vm.version = 1.6.0_01-b06
see
http://mindprod.com/jgloss/properties.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com