All pastes #994727 Raw Edit

Meins

public text v1 · immutable
#994727 ·published 2008-04-23 16:47 UTC
rendered paste body
import java.io.*;
/**
* Die Klasse Liste soll einen text einlesen und als einzelne Strings ausgeben.
*/
public class Liste {
    public static String liste()throws Exception {
    InputStream stream = new FileInputStream ("test.tex");
    InputStreamReader reader = new InputStreamReader (stream);
    String wort = "";
    for (char c; (c = reader.read() ) !=-1;){
        wort += c;
    }
return wort;
}}