Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

javax

import javax.swing.JOptionPane;    // Needed for Dialog Box

/**
 *   This program demonstrates
 *   showInputDialog.
 */
public class InputDialogDemo
{
   public static void main(String[] args)
   {
      String name;

      // Get the user's name.
      name = JOptionPane.showInputDialog("What is your name? ");

      // Display message
      JOptionPane.showMessageDialog(null, "Hello " + name);
   }
}
Comment

PREVIOUS NEXT
Code Example
Java :: java long literal 
Java :: contain java 
Java :: configure JWT on Springboot 
Java :: calling static method in java 
Java :: method overloading 
Java :: generics in java 
Java :: java array 
Java :: properties object java 
Java :: java "-" 
Java :: Java float Keyword 
Java :: Permutations of array in Java 
Java :: Java How to use NavigableMap? 
Java :: enter a word and print letters java 
Java :: Main method not found in class Ponga, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application 
Java :: java regex of eauations 
Java :: HOW TO MAKE ENUM START WITH ONE 
Java :: Write a Java Program to check if any number is a magic number or not. 
Java :: add image in loggin view spring boot security 
Java :: input method manager hide keyboard 
Java :: reverse words in a string java 
Java :: java %2C 
Java :: how to send int value from one actvi to another in android 
Java :: spring boot dto example java 
Java :: java bter data atual no padrão brasileiro 
Java :: Java Creating LinkedHashSet from Other Collections 
Java :: ternario java 
Java :: set length java 
Java :: public static void main(String args[]) { level input=new level(System.in); FirstPractice obj1=new FirstPractice(); obj1.loosing(1000); } 
Java :: spigot deal damage 
Java :: Get Max Value Element From List With Objects 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =