Code example for TreeMap

Methods: put

0
		c.add(Calendar.MONTH, 2);
	 
		AnnotationCountReport annotationCountReport =
			new AnnotationCountReport(1,2,3,4); 
         
		SortedMap<Date, Integer> submissionDays = new TreeMap<Date, Integer>();
        submissionDays.put(new Date(), 2);
        submissionDays.put(c.getTime(), 3);
         
        Calendar start = new GregorianCalendar();
        start.set(2007,7,5,0,0,0);
         
        Calendar end = new GregorianCalendar();
        end.set(2007,10,6,0,0,0);
         
        AnnotationReport annotationReport = 
			new AnnotationReport(annotationCountReport,
					             submissionDays,
					             start.getTime(),
					             end.getTime(),
					             "fakePrj//fakeSite"); 
		return annotationReport;
Stop searching for code, let great code find you!  Add Codota to your java IDE