Método de edición para Hashmap EmployeeStore

Estoy creando una EmployeeStore que almacenará nombres, nombres de dominio, identificación, dirección de correo electrónico, etc. y necesito escribir un método de edición. He buscado en Google y no puedo encontrar cómo hacerlo, ¿alguien puede ayudarme? Aquí está mi código:

//Imports.
import java.util.Scanner;
//********************************************************************  
public class MainApp
{
    private static Scanner keyboard = new Scanner(System.in);

    public static void main(String[] args)
    {
        new MainApp().start();

    }
    public void start()
    {
        EmployeeStore Store = new EmployeeStore();
        Store.add(new Employee ("James O' Carroll", 18,"hotmail.com"));

        Store.add(new Employee ("Andy Carroll", 1171,"yahoo.com"));

        Store.add(new Employee ("Luis Suarez", 7,"gmail.com"));
//Test Code with the new Hashmap.       
        /*Store.print();
        Store.clear();
        Store.print();

        Store.add(new Employee ("James O' Carroll", 18,"hotmail.com"));

        Store.add(new Employee ("Andy Carroll", 1171,"yahoo.com"));

        Store.add(new Employee ("Luis Suarez", 7,"gmail.com"));

        Store.print();
        Store.remove("Andy Carroll");
        Store.print();*/
//********************************************************************  
        //Switch Statement for use of a menu.
         int choice;
            do {
                choice = getMenuChoice("1.\tLibrarian\n2.\tPublic User\n3.\tExit\n\n", 3, "Please enter choice:", "Error [1,3] only");
                switch (choice) {
                    case 1:
                        System.out.println("Librarian Functionality...\n");
                        break;
                    case 2:
                        System.out.println("Public User functionality...\n");

                        break;
                    case 3:
                        System.out.println("Program Finished");

                }
            }
            while (choice != 3);
}
//********************************************************************  
      public static int getMenuChoice(String menuString, int limit, String prompt, String errorMessage) 
      {
            System.out.println(menuString);
            int choice = inputAndValidateInt(1, limit, prompt, errorMessage);
            return choice;
       }
//********************************************************************  



        public static int inputAndValidateInt(int min, int max, String prompt, String errorMessage) {
            int number;
            boolean valid;
            do {
                System.out.print(prompt);
                number = keyboard.nextInt();
                valid = number <= max && number >= min;
                if (!valid) {
                    System.out.println(errorMessage);
                }
            } while (!valid);
            return number;
        }
//********************************************************************  
}


//Imports:

//********************************************************************
//Employee Class.
public class Employee
{
//Variables.
    private String employeeName;
    private int employeeId;
    private String employeeEmail;
//********************************************************************  
//Constructor.
    public Employee(String employeeName, int employeeId, String employeeEmail) 
    {
        this.employeeName = employeeName;
        this.employeeId = employeeId;
        this.employeeEmail = employeeEmail;
    }
//********************************************************************
//Getters.
    public String getEmployeeEmail() {
        return employeeEmail;
    }
    public void setEmployeeEmail(String employeeEmail) {
        this.employeeEmail = employeeEmail;
    }
    public String getEmployeeName() {
        return employeeName;
    }
    public int getEmployeeId() {
        return employeeId;
    }
//********************************************************************
//toString method.
    public String toString() {
        return "Employee [employeeName=" + employeeName + ", employeeId="
                + employeeId + ", employeeEmail=" + employeeEmail + "]";
    }
//********************************************************************





}
//Imports.
import java.util.HashMap;
//********************************************************************
import java.util.Map;

public class EmployeeStore 
{
    HashMap<String, Employee> map;

//Constructor.  
    public EmployeeStore()
    {
        map = new HashMap<String,Employee>();
    }
//********************************************************************
//Hashmap Methods.
//Add to the Hashmap : Employee.
    public void add(Employee obj)
    {

        map.put(obj.getEmployeeName(), obj);
    }
//********************************************************************
//Remove from the Hashmap : Employee.
    public void remove(String key)
    {
      //Remove the Employee by name.
        map.remove(key);
    }
//********************************************************************
//Clear the Hashmap : Employee.
    public void clear()
    {
        map.clear();
    }
    //********************************************************************
//Print the Hashmap : Employee. 
    public void print()
    {
        System.out.println("\n********Employee's in the Company.********");
        for (Employee employee : map.values())
        {
            System.out.println("Employee Name:\t" + employee.getEmployeeName());
            System.out.println("Employee Id:\t" + employee.getEmployeeId());
            System.out.println("E-mail:\t"+ employee.getEmployeeEmail());
        }

    }


//********************************************************************  
//********************************************************************


}
Respuesta 1

En Sqlite 3.6.0, quiero actualizar el registro si existe o insertarlo. Pero recibo un error como java.sql.SQLException: near "on": error de sintaxis en mi consulta sql de la siguiente manera; INSERTAR EN tx (_id, ...

IDEA dijo que informa clases internas no estáticas. La compilación de tales clases provoca la creación de métodos ocultos y visibles en el paquete en la clase principal, lo que puede comprometer la seguridad. Así que quiero ...

Estoy tratando de agrupar algunos conjuntos en conjuntos disjuntos. Por ejemplo, si tengo estos 5 conjuntos: [[1, 3], [2], [1, 5], [6, 8], [1, 7]] Quiero tener este resultado: [[2] , [6, 8], [1, 3, 5, 7]] Aquí está el ...

Usando Pebble versión 3.0.6. Necesito verificar si el valor 'v' tiene una variable específica (traducido a Java: si Object v tiene una propiedad específica). Buscando algo como {% if v instanceof test.MyClass ...