public class App { public static void main(String[] args) throws Exception { Employee emp = new Employee.EmployeeBuilder() .setName("Nagy János") .setCity("Szeged") .setSalary(398) .build(); System.out.println(emp.toString()); } }