728x90 AdSpace

Latest Article

JOptionPane Message Dialog Box in Java Example Code For Input and Output




Java  Creating a Message Dialog Box How we take a input from the message box JOptionPane  easy input, output with dialog boxes Creating a MessageBox / Message Dialog in Java



public class JOptionPaneExample {
    public static void main(String[] args) {
     
        String userInput;
        //Input Message Box
        userInput = JOptionPane.showInputDialog(null,"Enter a Name?");
         //Output Message Box
        JOptionPane.showMessageDialog(null, "Your Name is "+userInput);
     
    }
}

no image
  • Title : JOptionPane Message Dialog Box in Java Example Code For Input and Output
  • Posted by :
  • Date : 11:15
  • Labels :





  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment

Top