title: System.out in DataOutputStream is not printing on the console
body: <p>I am trying the following code using the DataOutputStream. The OutputStream passed to the DataOutputStream is not printing anything. Please see my below code and pllease tell me anything wrong in this code.</p>
  
  <pre><code>public class DataStreamsExample {
  public static void main(String[] args) throws IOException {
      DataInputStream dis = new DataInputStream(System.in);
      System.out.println("Enter the First Number");
      int i = dis.readInt();
      System.out.println("Enter the Second Numebr");
      int j= dis.readInt();
      int total = i+j;
      DataOutputStream dos = new DataOutputStream(System.out);
      dos.writeInt(total);
  
  }
  </code></pre>
  
  <p>}</p>