I'm writing a method that pretty straightforward and easy: I want it to get an object and work on it's starting and ending date. All of the object I want it to work on have dates to do stuff with, but of course eclipse won't allow me to write such a method. Can it be done? How?
Here's the frame I'm working on
public <T> void updateStuff(T stuffObject, Calendar startDate, Integer delta) {
stuffObject.setStartDate(startDate);
Calendar calendarEnd = Calendar.getInstance();
calendarEnd = startDate;
calendarEnd.add(Calendar.MONTH, delta);
stuffObject.setEndDate(calendarEnd);
}