Code example for Calendar

Methods: addget

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; 
Stop searching for code, let great code find you!  Add Codota to your java IDE