Unable to compile through comand prompt. What am i doing wrong?
<pre><code>import java.io.DataInputStream;

class Reading{

    public static void main(String ar[]) throws Exception {
        DataInputStream din = new DataInputStream(System.in);

        int intNumber = 0;
        float floatNumber = 0.0f;

        System.out.println("Enter integer and float number");

        intNumber = Integer.parseInt(din.readLine());
        floatNumber = Float.valueOf(din.readLine()).floatValue();

        System.out.println("Integer" + intNumber);
        System.out.println("Float" + floatNumber);
    }
}

/* Output

Note: Reading.java uses or overrides a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

*/
</code></pre>
