@@ -0,0 +1,1753 @@
+package login;%0D%0A%0D%0Apublic class LoginTester %7B%0D%0A%0D%0A%09private static String dbPwd =%22x%22;%0D%0A%09private static String requestPwd = %22x%22;%0D%0A%09private static String requestUser = %22DD%22;%0D%0A%09private static String%5B%5D DBUsersArray = %7B%22AaA%22,%22bBb%22,%22c%22,%22dd%22,%22dD%22,%22Dd%22%7D;%0D%0A%09private static String msg = %22blah%22;%0D%0A%09%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09msg=%22start%22;%0D%0A%09%09System.out.println(msg);%0D%0A%09%09run();%0D%0A%09%7D%0D%0A%09public static String run() %7B%0D%0A%09%09//String%5B%5D DBUsers = getList(String partner, String pwd);%0D%0A%09%09int i=0;%0D%0A%09%09 if (DBUsersArray.length == 0) %7B%0D%0A%09%09%09 msg = %22DBUsers list empty. pwd not found%22;%0D%0A%09%09%09 System.out.println(msg);%0D%0A%09%09     return msg;%0D%0A%09%09 %7D%0D%0A%09%09 else %7B%0D%0A%09%09%09 System.out.println(%22starting iteration%22);%0D%0A%09%09%09 for (String dbUser:DBUsersArray) %7B%0D%0A%09%09%09%09if (dbUser.toLowerCase().equals(requestUser.toLowerCase())) %7B%0D%0A%09%09%09%09%09//user found%0D%0A%09%09%09%09   if (dbPwd.equals(requestPwd)) %7B%0D%0A%09%09%09%09%09    msg=%22 SUCCESS  user found. pwd match. dbUser=%22+dbUser+%22 requestUser=%22+requestUser+%22 dbPwd=%22+dbPwd+%22 requestPwd=%22+requestPwd;%0D%0A%09%09%09%09%09    System.out.println(msg);%0D%0A%09%09%09%09%09    return msg;%0D%0A%09%09%09%09   %7D%0D%0A%09%09%09%09   else %7B%0D%0A%09%09%09%09   //user found but pwd wrong%0D%0A%09%09%09%09%09    System.out.println(%22user found and pwd wrong i=%22+i+%22 dbuser=%22+dbUser+%22 requestuser=%22+requestUser+%22 continue%22);%0D%0A%09%09%09%09%09    i++;%0D%0A%09%09%09%09%09%09continue;// check next user in the list%0D%0A%09%09%09%09%09%09//and not%0D%0A%09%09%09%09%09%09//return %22pwd wrong%22;%0D%0A%09%09%09%09   %7D%0D%0A%09%09%09%09%7D%0D%0A%09%09%09%09else %7B%0D%0A%09%09%09%09//user not found%0D%0A%09%09%09%09%09System.out.println(%22user NOT found so far i=%22+i+%22 dbuser=%22+dbUser+%22 requestuser=%22+requestUser+%22 continue%22);%0D%0A%09%09%09%09%09i++;%0D%0A%09%09%09%09%09continue;// check next user in the list%0D%0A%09%09%09%09%09//and not%0D%0A%09%09%09%09%09//return %22user not found%22%0D%0A%09%09%09%09%7D%0D%0A%09%09%09 %7D//end of for%0D%0A%09%09%09 msg= %22end of loop%22;%0D%0A%09%09%09 System.out.println(msg);%0D%0A%09%09%09 return %22end of loop%22;%0D%0A%09%09 %7D//end of if not empty list%0D%0A%09%7D%0D%0A%7D%0D%0A

case-sensitive usernames & usernames not unique