How to Find Odd or Even Numbers using Java Swing

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 […]

How to Find Odd or Even Numbers using Java Swing Read More »