import java.io.*;
class ByteArrayInputStreamDemo {
public static void main(
String args[])throws IOException {
String tmp="abdgdgddklldkhdldhk";
byte b[]=tmp.getBytes();
ByteArrayInputStream input1=new ByteArrayInputStream(b);
ByteArrayInputStream input2=new ByteArrayInputStream(b,0,3);
}
}
/************ now how do i retrieve the values stored in input1 and input2*******************/