private void DisplayListOfUsers() {
        String list;

        list = Global.gPendingTable.GetListOfLoggedInUsers();

        if (list.length() > 0) {
            Global.gUserIO.print("\n" + Global.LINE + "Users now logged in are:- \n\n");

            if (list.length() > 1) {
                for (int x = 0; x < list.length(); x++) {
		   String id = list.substring(x, x+1);
		   // check not last character
		    if (x < list.length() - 1) {
		       
                        //if this is local user ID
			if (Global.gUserID == id.charAt(0)){
			   Global.gUserIO.print(id + " - (YOU), ");
			}
			else
			   Global.gUserIO.print(id + ", ");
                    } else 
		    {
                        //print last character
			if (Global.gUserID == id.charAt(0))
			{
			   Global.gUserIO.print(id + " - (YOU)");
			}
			else
                        Global.gUserIO.print(list.substring(x, x + 1) + "\n");
                    }
                }
            } else {
                //print single character
                if (Global.gLoggedIn) {
                    Global.gUserIO.print("Just you: " + list + "\n" + Global.LINE);
                } else {
                    Global.gUserIO.print("Just one user: " + list + "\n" + Global.LINE);
                }
            }
        } else {
            Global.gUserIO.print("\n"+ Global.LINE+"Noone is logged in.\n"+ Global.LINE);
        }
    } //DisplayListOfUsers