/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package daftar;
import javax.swing.*;
/**
*
* @author surur
*/
public class prak1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
String input;
int nim, ttl;
String nama, fakjur, alamat, cita2;
input=JOptionPane.showInputDialog("NAMA : ");
nama=(input);
input=JOptionPane.showInputDialog("NIM : ");
nim=Integer.parseInt(input);
input=JOptionPane.showInputDialog("Fakultas/Jurusan : ");
fakjur=(input);
input=JOptionPane.showInputDialog("TTL : ");
ttl=Integer.parseInt(input);
input=JOptionPane.showInputDialog("Alamat : ");
alamat=(input);
input=JOptionPane.showInputDialog("Cita-cita : ");
cita2=(input);
JOptionPane.showMessageDialog(null,("Nama : "+nama)+("\nNIM : "+nim)+("\nFakultas/Jurusan : "+fakjur)
+("\nTTL : "+ttl)+("\nAlamat : "+alamat)+("\nCita-cita : "+cita2));
System.exit(0);
}
}
No comments:
Post a Comment