Java tutorial
import java.io.BufferedReader; import java.io.StringReader; public class Main { public static void main(String[] args) throws Exception { String s = "from java2s.com"; StringReader sr = new StringReader(s); BufferedReader br = new BufferedReader(sr, 200); } }