Compose Calculator Using Joptionpane Java Language Simple Possible Please Isba Beginners P Q37249337

how to compose a calculator using joptionpane in javalanguage. As simple as possible please this isba beginnersprogramming class.


Answer


import javax.swing.*;public class OptionPaneExample { public static void main(String[] args) { String str = JOptionPane.showInputDialog(“Enter a string”); // read a string from user JOptionPane.showMessageDialog(null, str); // display a message }}

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.