contoh program input data box

//program input data box
import javax.swing.*;
class inputdatabox{
public static void main (String[] args)
{
String teks = JOptionPane.showInputDialog("Masukan data :");
System.out.print(teks);
System.exit(0);
}
}