FileDocCategorySizeDatePackage
DoubleInput.javaAPI DocExample608Sun Mar 28 19:05:50 BST 1999None

DoubleInput

public class DoubleInput extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    try {
      InputStream in1 = new FileInputStream(args[0]);
      InputStream in2 = new FileInputStream(args[0]);
    
      while (true) {
        int datum = in1.read();
        if (datum  == -1) break;
        System.out.println("in1: \t" + datum);
        datum = in2.read();
        if (datum  == -1) break;
        System.out.println("in2: \t" + datum);
      }
      in1.close();
      in2.close();
    }
    catch (IOException e) {
      System.err.println(e);
    }