I'm trying to write a program that prints out the largest and smallest of four numbers that are inputted using a JOptionpane, but I cannot figure out how to sort out the integers with if and if else statements. Anyone have any advise?
dylgod
0
Newbie Poster
Recommended Answers
Jump to PostYou need to figure out your logic using something like a flowchart on a piece of paper. Or try pseudo code.
Once you get your logic worked out, then worry how to implement your logic.Can you do your comparisons as the numbers are entered or must you wait …
All 2 Replies
Reply to this topic
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.