can you give ne some ideas on how to do this program output?

can you give ne some ideas on how to do this program output?

first calculate the correct result, then use setText() on the JLabel to show your output in it.

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.