import java.io.ByteArrayInputStream;
public class TestByteArrayInputStream1 {
public static void main(String[] args) {
String s="abcdefghijklmnopqrstuvwxyz";
byte[] temp=s.getBytes();
ByteArrayInputStream bais=new ByteArrayInputStream(temp);
int d;
d=bais.read();
while(d!=-1){
System.out.print((char)d);
bais.read();
}
}
}