	public static void main(String[] args)
	{
		if (args.length < 4)
		{
			System.out.println("Usage: java EmployeeUpdater <EmployeeObjectName> <Forename> <HourlyRate> <HoursPerWeek>");
			return;
		}
		double hourlyRate = 0.0;
		int hoursPerWeek = 0;
		try {
			hourlyRate = Double.parseDouble(args[2]);
		} catch (NumberFormatException ex) {
			System.out.println("'" + args[2] + "' is not a valid decimal number");
			return;
		}
		try {
			hoursPerWeek = Integer.parseInt(args[3]);
		} catch (NumberFormatException ex) {
			System.out.println("'" + args[3] + "' is not a valid integer");
			return;
		}
		try {
			Registry registry = LocateRegistry.getRegistry();
			Employee employee = (Employee)registry.lookup(args[0]);
			employee.setForename(args[1]);
			employee.setHourlyRate(hourlyRate);
			employee.setNumberHours(hoursPerWeek);
		} catch (RemoteException ex) {
		} catch (NotBoundException ex) {
		}
	}

	public static void main(String[] args)
	{
		if (args.length < 4)
		{
			System.out.println("Usage: java EmployeeUpdater <EmployeeObjectName> <Forename> <HourlyRate> <HoursPerWeek>");
			return;
		}
		double hourlyRate = 0.0;
		int hoursPerWeek = 0;
		try {
			hourlyRate = Double.parseDouble(args[2]);
		} catch (NumberFormatException ex) {
			System.out.println("'" + args[2] + "' is not a valid decimal number");
			return;
		}
		try {
			hoursPerWeek = Integer.parseInt(args[3]);
		} catch (NumberFormatException ex) {
			System.out.println("'" + args[3] + "' is not a valid integer");
			return;
		}
		try {
			Registry registry = LocateRegistry.getRegistry();
			Employee employee = (Employee)registry.lookup(args[0]);
			employee.setForename(args[1]);
			employee.setHourlyRate(hourlyRate);
			employee.setNumberHours(hoursPerWeek);
		} catch (RemoteException ex) {
			System.out.println("Could not update employee with object name '" + args[0] + "'");
		} catch (NotBoundException ex) {
			System.out.println("Could not update employee with object name '" + args[0] + "'");
		}
	}
