Java code to display all even or odd number from 1 to n

Facebook 1 Twitter 0 Pinterest1 Reddit 0 LinkedIn Email 1Shares