Compile Java Files At Runtime

Java 6 has a new Compiler API, as a result of JSR 199, which requests for a standard way to compile java source files. Although I use a lot of Java, I don't get to use some of the Java API's, as they are not required for the business...

» [Read More]

Missing Number

Apart from a few programming puzzles, I never really got to work extensively on 'Bit Array' operations. So, as was practicing a bit, I got an idea for a problem, for which I posted a solution already ( Software Job - Interview Question). This problem is about finding the...

» [Read More]

Guice - AOP (Aspect Oriented Programming)

Aspect Oriend Programming (AOP) is a programming methodology or perspective, which was conceived to bring in more modular approach to the already existing 'Object Oriented Methodology'. Dependency Injection, which is another programming methodology to bring in more modular approach or to create loosely coupled modules, which...

» [Read More]

Creating Executable Jar File With Maven Shade Plugin

In a couple of Java projects with external jar files as dependencies, you can create an executable jar file by the following ways: 1) Include the sources of external libraries in your project and build them, as part of your project build process. 2) Unpack...

» [Read More]

Java - Looping Through A Range of BigInteger Values

Recently, I was just coding something and came across a situation, where I'd to loop through a range of BigInteger values. I'd to think a bit to work on this, as I haven't worked extensively on arbitrary precision arithmetic. Below is an example of how to loop through a range...

» [Read More]