Hello,
I am having trouble with my Odd/ Even Code. Can anyone help me with this? Or has a current code?
Babyblues 0 Newbie Poster
Recommended Answers
Jump to Postwhere is your odd/even code ... let us have a look over it. Only then we'll be able to help you.
Jump to Posttry it now
import javax.swing.JOptionPane; // program uses JOptionPane public class EvenOdd { public static void main(String[] args) { String firstNumber; int number; firstNumber = JOptionPane.showInputDialog( null, " Enter a number" ); number = Integer.parseInt(firstNumber); if ( number%2 == 0 ){ System.out.print( " Number is EVEN " …
All 7 Replies
nanosani 20 Technize.net addict Team Colleague
Babyblues 0 Newbie Poster
DoubleShot 0 Newbie Poster
nanosani 20 Technize.net addict Team Colleague
alreem 0 Newbie Poster
hahahha 0 Newbie Poster
new_programmer 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.