title: Print and println aren't executed in the same time
body: <p>I have a method in my servlet where I have some prints to the console.. </p>
  
  <pre><code>   private void collectingWorkPositions(HttpSession session, HttpServletRequest request)
     {       
       System.out.println("Collecting1..");
  
       //code...                
  
       System.out.println("Collecting2..");
  
       //code...
  
       System.out.print("printing p: ");
       for(Integer i:p)
           System.out.print(i + " ");
     }
  </code></pre>
  
  <p>When this method iscalled, only </p>
  
  <pre><code>Collecting1..
  Collecting2..
  </code></pre>
  
  <p>are printed in the console. When I am refreshing the JSP page, only then the last print (without the ln) isprinted. I know that the difference between these two is that <code>println</code> will print on a new line where <code>print</code> will print at the same line, so why is this not happening here in the same action ?</p>