PROBLEM IN STATEMENT MARKED **
code:
import java.io.*;
class ByteArrayInputStreamReset {
public static void main(
String args[]) throws IOException {
String tmp = "abc";
byte b[] = tmp.getBytes();
ByteArrayInputStream in = new ByteArrayInputStream(b);
for(int i=0; i<2; i++) {
int c;
while((c = in.read())!= -1) {
if(i==0) { ** //WHAT IS THE USE OF THIS LINE?WHY ARE WE DOING THIS
System.out.print((char)c);
} else {
System.out.print(Character.toUpperCase((char)c));
}
}
System.out.println();
in.reset();
}}}