private static void addStudentToTable() {
		String lName = new String();
		String fName = new String();

		lName = JOptionPane
				.showInputDialog("Please enter the last name of the student to add.");
		fName = JOptionPane.showInputDialog("Now enter his/her first name.");

		int indexOfStu = studentExists(lName, fName);

		if (indexOfStu != -9999) // if student exists
		{
			Integer oldTable = new Integer(
					((Student) Students.get(indexOfStu)).getTableNum());
			Integer newtable = new Integer(
					JOptionPane
							.showInputDialog("At which table would you like to place "
									+ fName + "?"));

			if (!(((Table) DiningRoom.get(newtable.intValue() - 1)).filled())) {
				((Student) Students.get(indexOfStu)).setTableNum(newtable
						.intValue());

				if (oldTable.intValue() == 27) {
					unAssignedStudents.remove(/*
											 * findIndexInVec(unAssignedStudents,
											 */((Student) Students
							.get(indexOfStu)).getID());
				} else {
					((Table) DiningRoom.get(oldTable.intValue() - 1))
							.removeID(((Student) Students.get(indexOfStu))
									.getID());
				}

				((Table) DiningRoom.get(newtable.intValue() - 1))
						.addID(((Student) Students.get(indexOfStu)).getID());

				JOptionPane.showMessageDialog(null, fName
						+ " has been moved from " + oldTable + " to table "
						+ newtable + ".");
			} else
				JOptionPane.showMessageDialog(null, "Sorry.  Table is full.");
		} else
			JOptionPane.showMessageDialog(null,
					"Sorry.  Student not found.  Please re-enter a name.");
	}