public static JobDescription example5() { GregorianCalendar calendar = new GregorianCalendar(); JobDescription newJob = new JobDescription(); newJob.setTitle("Janitor"); newJob.setDescription("Clean the office"); newJob.setSalary((float) 5000.0); newJob.setStartDate(calendar.getTime()); calendar.add(Calendar.DATE, 365); // advance the date by one year newJob.setEndDate(calendar.getTime()); return newJob; }
public static JobDescription example4() { GregorianCalendar calendar = new GregorianCalendar(); JobDescription newJob = new JobDescription(); newJob.setTitle("Receptionist"); newJob.setDescription("Answer any incoming calls and other administrative tasks"); newJob.setSalary((float) 25000.0); newJob.setStartDate(calendar.getTime()); calendar.add(Calendar.DATE, 365); // advance the date by one year newJob.setEndDate(calendar.getTime()); return newJob; }
public static JobDescription example3() { GregorianCalendar calendar = new GregorianCalendar(); JobDescription newJob = new JobDescription(); newJob.setTitle("Systems Administrator"); newJob.setDescription("Maintain existing networks and upkeep of workstations"); newJob.setSalary((float) 40000.0); newJob.setStartDate(calendar.getTime()); calendar.add(Calendar.DATE, 365); // advance the date by one year newJob.setEndDate(calendar.getTime()); return newJob; }
public static JobDescription example2() { GregorianCalendar calendar = new GregorianCalendar(); JobDescription newJob = new JobDescription(); newJob.setTitle("Software Developer"); newJob.setDescription( "Participate in the design and development of the Data Integrator product"); newJob.setSalary((float) 50000.0); newJob.setStartDate(calendar.getTime()); calendar.add(Calendar.DATE, 365); // advance the date by one year newJob.setEndDate(calendar.getTime()); return newJob; }
public static JobDescription example1() { GregorianCalendar calendar = new GregorianCalendar(); JobDescription newJob = new JobDescription(); newJob.setTitle("Instructor"); newJob.setDescription( "Deliver course materials to clients and assist with any hands on sessions"); newJob.setSalary((float) 45000.0); newJob.setStartDate(calendar.getTime()); calendar.add(Calendar.DATE, 365); // advance the date by one year newJob.setEndDate(calendar.getTime()); return newJob; }