FileDocCategorySizeDatePackage
RootsFile.javaAPI DocExample449Sun Mar 28 19:06:52 BST 1999None

RootsFile

public class RootsFile extends Object

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


    try {
      FileOutputStream fout = new FileOutputStream("roots.dat");
      DataOutputStream dout = new DataOutputStream(fout);
      for (int i = 0; i <= 1000; i++) {
        dout.writeDouble(Math.sqrt(i));
      }
      dout.flush();
      dout.close();
    }
    catch (IOException e) {
      System.err.println(e);
    }