Java by API/java.io/StringReader
Версия от 17:43, 31 мая 2010; (обсуждение)
new StringReader(String s)
import java.io.IOException;
import java.io.StringReader;
public class Main {
public static void main(String[] args) throws IOException {
StringReader in2 = new StringReader("a bc ddd");
int c;
while ((c = in2.read()) != -1)
System.out.print((char) c);
}
}//
StringReader: read()
import java.io.IOException;
import java.io.StringReader;
public class Main {
public static void main(String[] args) throws IOException {
StringReader in2 = new StringReader("a bc ddd");
int c;
while ((c = in2.read()) != -1)
System.out.print((char) c);
}
}//