Contoh Penggunaan JoptionPane untuk entry data

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package biodata;

import javax.swing.JOptionPane;

/**
 *
 * @author DOA
 */
public class contohJoptionpane {
    public static void main(String[] args) {
       
    String nim =JOptionPane.showInputDialog("Masukkan Nim anda ?");
    String nama=JOptionPane.showInputDialog("Masukkan Nama anda ?");
   
    JOptionPane.showMessageDialog(null,"Nim  = " +nim+"\n"+        
                                       "Nama = " +nama);
   
       
       
    }
   
   
}
Contoh Penggunaan JoptionPane untuk entry data Rating: 4.5 Diposkan Oleh: Adhy

No comments:

Post a Comment