Re: why is this behaving badly?

2013-05-24 Thread Jim - FooBar();
thanks a lot guys :) Both solutions work! Jim On 24/05/13 20:42, Andy Fingerhut wrote: Try adding (flush) after the print call. On Fri, May 24, 2013 at 12:35 PM, Jim - FooBar(); mailto:jimpil1...@gmail.com>> wrote: Hi everyone, I am trying to do something very simple like asking

Re: why is this behaving badly?

2013-05-24 Thread Dima Sabanin
Hi Jim, I think the STDOUT stream in Java is flushed by default when you print a new line. You can flush manually with: (.flush (System/out)) Hope that helps, Dima On Fri, May 24, 2013 at 3:35 PM, Jim - FooBar(); wrote: > Hi everyone, > > I am trying to do something very simple like asking t

Re: why is this behaving badly?

2013-05-24 Thread Andy Fingerhut
Try adding (flush) after the print call. On Fri, May 24, 2013 at 12:35 PM, Jim - FooBar(); wrote: > Hi everyone, > > I am trying to do something very simple like asking the user whether he > wants to continue or not (a-la bash). However, sometimes the print > statement is printed sometimes it is

why is this behaving badly?

2013-05-24 Thread Jim - FooBar();
Hi everyone, I am trying to do something very simple like asking the user whether he wants to continue or not (a-la bash). However, sometimes the print statement is printed sometimes it isn't! IN other words sometimes I get the prompt ,sometimes it looks like it's hanging (while in fact it's