0 1 2 3 4 0 1 2 3 4 series in java code example Example: 1 2 1 3 2 1 4 3 2 1 3 2 1 2 1 1 java 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1