Java Program to print Odd and Even Numbers from an Array9 Sept 2024 | 1 min read We can print odd and even numbers from an array in java by getting remainder of each element and checking if it is divided by 2 or not. If it is divided by 2, it is even number otherwise it is odd number. Test it NowOutput: Odd Numbers: 1 5 3 Even Numbers: 2 6 2 Next TopicJava Programs |
We request you to subscribe our newsletter for upcoming updates.

We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India