i get
Exception in thread "main" java.lang.Array IndexOutOfBound sException: 0
at Interface.main( Interface.java: 346)
n i can't find out what is wrong..
//Start Main ()
public static void main (String [] args) {
//public native void cls();
//final static String ESC = "\033[";
//Runtime.getRunt ime().exec("cls ");
//System.out.flus h();
AccountTransact ion aT = new AccountTransact ion();
Account ac = new Account();
Interface in = new Interface();
CustomerInfo c = new CustomerInfo();
String loginName = args[0];
String pCode = args[1];
c = ac.checkLoginPi nCode(args[0],args[1]);
if ( loginName.equal s("osama") && pCode.equals("m averick") ) {
System.out.prin tln("Welcome Administrator") ;
in.adminMenu();
} else if ( c != null ) {
c = ac.checkLoginPi nCode(args[0],args[1]);
System.out.prin tln("Welcome , " + c.holderName.to UpperCase());
in.customerMenu (c);
} else {
System.out.prin tln ("Your UserName & PinCode Is Incorrect");
//System.out.prin tln("Enter Again : ");
}
}// End Main
Exception in thread "main" java.lang.Array IndexOutOfBound sException: 0
at Interface.main( Interface.java: 346)
n i can't find out what is wrong..
//Start Main ()
public static void main (String [] args) {
//public native void cls();
//final static String ESC = "\033[";
//Runtime.getRunt ime().exec("cls ");
//System.out.flus h();
AccountTransact ion aT = new AccountTransact ion();
Account ac = new Account();
Interface in = new Interface();
CustomerInfo c = new CustomerInfo();
String loginName = args[0];
String pCode = args[1];
c = ac.checkLoginPi nCode(args[0],args[1]);
if ( loginName.equal s("osama") && pCode.equals("m averick") ) {
System.out.prin tln("Welcome Administrator") ;
in.adminMenu();
} else if ( c != null ) {
c = ac.checkLoginPi nCode(args[0],args[1]);
System.out.prin tln("Welcome , " + c.holderName.to UpperCase());
in.customerMenu (c);
} else {
System.out.prin tln ("Your UserName & PinCode Is Incorrect");
//System.out.prin tln("Enter Again : ");
}
}// End Main
Comment