title: Java not outputting to terminal as expected (new lines appearing)
body: <p>The code I have is below. I am expecting it to spit out something like:</p>
  
  <blockquote>
    <p>SN=12345678 EX=  73 CW=  73 Mark =  73.0</p>
    
    <p>SN=87654321 EX=  50 CW=  70 Mark =  60.0</p>
  </blockquote>
  
  <p>But I am getting:</p>
  
  <blockquote>
    <p>.</p>
    
    <p>.</p>
    
    <p>.</p>
    
    <p>SN=12345678 EX=  73 CW=  73 Mark =  73.0</p>
    
    <p>.</p>
    
    <p>.</p>
    
    <p>SN=87654321 EX=  50 CW=  70 Mark =  60.0</p>
  </blockquote>
  
  <p>(With a load of extra linebreaks (demonstrated by periods))</p>
  
  <p>I really can't work out where these are coming from.</p>
  
  <p>Please point me in the right direction!</p>
  
  <pre><code>class Main
  {
      public static void main( String args[] )
      { 
          int sN = 1;
          int cwMark;
          int exMark;
          double Mark;
          while ( sN != 0 )
          {
              sN = CIO.getInt();
              cwMark = CIO.getInt();
              exMark = CIO.getInt();
              Mark = ((double)(exMark + cwMark)/2);
              System.out.print("SN=");
              System.out.print( (int) sN );
              System.out.print(" EX=  ");
              System.out.print( (int) exMark );
              System.out.print(" CW=  ");
              System.out.print( (int) cwMark );
              System.out.print(" Mark =  ");
              System.out.print(Mark);
          }
      }
  }
  </code></pre>
  
  <p>getInt is defined as:</p>
  
  <pre><code>public static int getInt()
    {
      String res = getLine();                          
      int value = 0;                                 
      try
      {
        value = Integer.parseInt( res.trim() );
      }
      catch ( NumberFormatException ex ) 
      {                                                 
      }
      return value;                                   
    }
  </code></pre>