for(int i=0;i<textwriterList.size();i++) { System.out.println(textwriterList.size()); System.out.println(writetext); try { PrintWriter out = (PrintWriter)(this.textwriterList.get(i)); out.println(writetext); out.println(); } catch(Exception e) { System.out.println("Fehler:"+e.getMessage()+"\n"+e.toString()); } }