Code example for Calendar

Methods: add, get

0
	} 
 
	@Override 
	protected String getNextStripUrl() {
		Calendar cal = getCurrentCal();
		cal.add(Calendar.DAY_OF_MONTH, 3);
		addException(cal, 1);
		return getUrlFromTime(cal);
	} 
 
	@Override 
	protected String getPreviousStripUrl() {
		Calendar cal = getCurrentCal();
		cal.add(Calendar.DAY_OF_MONTH, -2);
		addException(cal, -1);
		return getUrlFromTime(cal);
	} 
 
	@Override 
	public String getUrlFromTime(Calendar cal) {
		return String.format("http://www.penny-arcade.com/comic/%04d/%02d/%02d/",
				cal.get(Calendar.YEAR), cal.get(Calendar.MONTH)+1, cal.get(Calendar.DAY_OF_MONTH));
	} 
 
	@Override 
	protected boolean htmlNeeded() { 
		return true;