Source Code Form pertama

0
form petama@
package loginfirman;

import javax.swing.JOptionPane;

public class LoginFirmans {
    public static void main(String[] args) {
        String nama = "";
        String pass = "";
        nama = JOptionPane.showInputDialog("Masukkan Nama Anda: ");
        pass = JOptionPane.showInputDialog("Masukkan Password Anda: ");{
       
        if (nama.equals("anik")&& pass.equals("firman")){
            formpilihan.main(args);
   
        }else{
            String error = "Salah";
            JOptionPane.showMessageDialog(null,error);
            }
        }
    }
}

Posting Komentar

0 Komentar

Please Select Embedded Mode To show the Comment System.*


To Top