// anfang:GregorianCalendar starter =new GregorianCalendar();// mitte:for (start=heuteJahr; start<end_year; start++){ starter.set(Calendar.YEAR, start_year); textarea.setText(String.valueOf(starter.get( Calendar.DAY_OF_YEAR))); tage_year =tage_year +starter.get(Calendar.DAY_OF_YEAR);}// ende: textarea.setText(gesamttage) funktioniert.textarea.setText(String.valueOf(tage_year));