import java.io.*;

/**
 * An example of value-type I/O 
 * (that might not behave as expected)
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class DataWriter
{

    /**
     * The entry point
     *
     * @param args   The command-line arguments
     */
    public static void main(String[] args) throws Exception
    {
       DataOutputStream    out;
       double              d;
       int                 i;


       i = 97;
       d = 97.0;

       out = new DataOutputStream(System.out);
       out.writeInt(i);
       out.writeChar('|');

       out.writeDouble(d);
       out.writeChar('|');

       out.flush();
    }

}
