//Modul Login
/*Steven Sen			064001600022
Dimas Adi Pratama		064001600003 
La Ode Muhammad Nurabdulrahma	064001600013
Febriana Tindaon		064001600017
Soefhwan			065001600002 */
import java.util.Scanner;
public class Login
{

   public static void main(String[] args)
   
   {
   Scanner input = new Scanner (System.in);
	String namauser,kode,password,username;

   String[] Login;
   
   Login = new String [10];
   Login[0]="Anung";
   Login[1]="12345";
   Login[2]="Imam";
   Login[3]="45678";
   
 


public class login
{
	public static void main(String args[])
	{
		String NAMA, PASSWORD;
		int i, pilihan;
		
		dataUser[] USER = new dataUser[10];
		
		USER[0] = new dataUser("Arman", "arman1234");
		USER[1] = new dataUser("Febri", "febri2345");
		USER[2] = new dataUser("Steven", "steven3456");
		USER[3] = new dataUser("Sofwan", "sofwan4567");
		USER[4] = new dataUser("Dimas", "dimas5678");
			   

for (;;)
		{	
			NAMA = JOptionPane.showInputDialog("Masukkan username = ");

			PASSWORD = JOptionPane.showInputDialog("Masukkan pin = ");

			for (i = 0; i <= 5; i++)
			{
				if (i < 5)
				{
					if (NAMA.equals(USER[i].cekUser()) && PASSWORD.equals(USER[i].cekPin()))
					{
						JOptionPane.showMessageDialog(null, "Login Sukses");
						break;
					}
				}
				if (i > 4)
				{
					JOptionPane.showMessageDialog(null, "Maaf login gagal");
				}
			}

@@ -899,16 +899,17 @@
 %09%09%09   %0A%0A
+%09
 for (;;)
@@ -913,14 +913,12 @@
 ;;)%0A
-%09
 %09%7B%09%0A
-%09
 %09%09NA
@@ -978,17 +978,16 @@
  %22);%0A%0A%09%09
-%09
 PASSWORD
@@ -1040,17 +1040,16 @@
  %22);%0A%0A%09%09
-%09
 for (i =
@@ -1065,25 +1065,23 @@
 5; i++)%0A
-%09
 %09%09%7B%0A%09%09%09
-%09
 if (i %3C 
@@ -1082,28 +1082,26 @@
  (i %3C 5)%0A%09%09%09
-%09
 %7B%0A
-%09
 %09%09%09%09if (NAMA
@@ -1169,20 +1169,18 @@
 )))%0A%09%09%09%09
-%09
 %7B%0A
-%09
 %09%09%09%09%09JOp
@@ -1229,17 +1229,16 @@
 kses%22);%0A
-%09
 %09%09%09%09%09bre
@@ -1249,18 +1249,15 @@
 %09%09%09%09
-%09
 %7D%0A
-%09
 %09%09%09%7D%0A
-%09
 %09%09%09i
@@ -1265,28 +1265,26 @@
  (i %3E 4)%0A%09%09%09
-%09
 %7B%0A
-%09
 %09%09%09%09JOptionP
@@ -1330,21 +1330,368 @@
  gagal%22);%0A%09%09
+%09%7D%0A
 %09%09%7D%0A%09%09
-%09
+pilihan = JOptionPane.showConfirmDialog(null, %22Apakah anda ingin login lagi?%22, %22LOGIN%22, JOptionPane.YES_NO_OPTION);%0A%09%09if (pilihan == JOptionPane.YES_OPTION)%C2%A0%C2%A0%C2%A0%0A%09%09%7B%C2%A0%C2%A0%C2%A0%C2%A0%0A%09%09%09JOptionPane.showMessageDialog(null, %22Silahkan login lagi%22);%C2%A0%C2%A0%C2%A0%0A%09%09%7D%C2%A0%C2%A0%C2%A0%0A%09%09else%C2%A0%C2%A0%C2%A0%0A%09%09%7B%C2%A0%C2%A0%C2%A0%C2%A0%0A%09%09%09JOptionPane.showMessageDialog(null, %22Terima Kasih%22);%C2%A0%C2%A0%C2%A0%C2%A0%0A%09%09%09break;%C2%A0%C2%A0%C2%A0%0A%09%09%7D%C2%A0%C2%A0%C2%A0%0A%09%7D%C2%A0%C2%A0%C2%A0%0A
 %7D%0A

Update Login.java