IBM Interview Question

Java program to print alternate numbers