Should in fact be a database for permanent storage.
Inside your java app it should be an object
public class Employee
{
private String name, id, position;
private double salary;
public Employee(String name, String id, String position, double salary)
{
this.name=name;
this.id=id...