A Java program to print odd numbers and even numbers from two separate threads using executor framework
===

I want an algorithm that prints odd numbers and even numbers in separate threads . The output should be sequential `1,2,3.4 ,.....` Executor framework can be used here . I have seen a [related question on SO][1] but that is in C . I want a Java implementation here .

[1]:http://stackoverflow.com/questions/2742520/program-to-print-odd-numbers-and-even-numbers-on-seperate-threads