private static void login(BufferedReader br, ServiceInterface obj,
			Scanner cs) throws IOException{
		// TODO Auto-generated method stub
/*		
		String str[] = new String[2];

		for (int i = 0; i < 2; i++) {
			str[i] = br.readLine();
		}
		
		String[] userIds=rb.getStringArray("userIds");
		String[] passwords=rb.getStringArray("passwords");
		for (String user : userIds) {
			if(user.equals(str[0])){
				for (String pass : passwords) {
					if (pass.equals(str[1])) {
						
					}
				}
			}
		}
*/		
		
		
		
		
		
		
		String str[] = new String[2];

		for (int i = 0; i < 2; i++) {
			str[i] = br.readLine();
		}
		
		if (obj.login(str[0], str[1])) {
			System.out.println("Hello "+str[0]);
			showMenu(br, obj, cs);
		}
		else {
			System.out.println("Login failed.");
			showMenu(br, obj, cs);
		}
	}