This tutorial will teach you How to Find Odd or Even Numbers using Java Swing. Paste the Code Inside the Ok Button int num = Integer.parseInt(txtnum.getText()); if(num % 2 == 0) { JOptionPane.showMessageDialog(this, num + " : is Even "); } else { JOptionPane.showMessageDialog(this, num + " : is Odd "); } i have attached the video link below. which …
How to Find Odd or Even Numbers using Java Swing
![](https://www.tutussfunny.com/wp-content/uploads/2021/06/oddeven-1-300x187.jpg)
![](https://www.tutussfunny.com/wp-content/uploads/2021/06/oddeven-1-300x187.jpg)
![](https://www.tutussfunny.com/wp-content/uploads/2021/06/oddeven-1-300x187.jpg)