Java tutorial
import java.io.ByteArrayInputStream; import java.io.DataInputStream; public class Main { public static void main(String[] args) throws Exception { DataInputStream in3 = new DataInputStream(new ByteArrayInputStream("a dbcde".getBytes())); System.out.print((char) in3.readByte()); in3.close(); } }