import java.io.*; public class Andmeproov2{ public static void main(String[] arg) throws IOException{ FileInputStream fis=new FileInputStream("andmed1.dat"); DataInputStream dis=new DataInputStream(fis); System.out.println(dis.readDouble()); dis.close(); } }