Menentukan Password
June 6, 2010 at 12:00 pm Leave a comment
public static void main(String[] args) throws IOException {
// TODO code application logic here
Integer NIM = Integer.parseInt(JOptionPane.showInputDialog(“Inputkan NIM Anda : “));
String Nama = JOptionPane.showInputDialog(“Inputkan Nama Anda : “);
Integer PSWD = (int)(Math.random()*(10000+(99999)));
JOptionPane.showMessageDialog(null, “SELAMAT DATANG, ” + Nama + ” (” + NIM + “) \n PASSWORD ANDA : ” + PSWD);
}
}
Advertisement
Entry filed under: Uncategorized. Tags: .





Trackback this post | Subscribe to the comments via RSS Feed