System.out.println("Please enter the employee's address [number,street,city]:");
String address = in.readLine();
String[] lines = address.split(",");
if (lines.length != 3) { throw new IllegalArgumentException("Addresses must contain a number, street and city."); }
return new Address(Integer.parseInt(lines[0]), lines[1], lines[2]);
}