maven parallel builds

maven 3.x has bought in a great feature, the possibility of parallel builds. mvn -T 4 clean install # Builds with 4 threads mvn -T 1C clean install # 1 thread per cpu core mvn -T 1.5C clean install # 1.5 thread per cpu co  I have been doing some experiments with this parallel builds … [Read more…]

Convert a String to an int in Java

How to convert a String to an int in java? The Java Integer wrapper class provides a method parseInt to convert a String to an int.  Here is the method signature: One thing that you will note in the declaration is that the method also throws NumberFormatException.  Just note it for now, we will see below why this exception is … [Read more…]