pat cavanagh wrote:

> >             }
> >           System.in.skip(1);            //remove nl
> >         }while(prod!='x'&&prod!='X');
> >       System.out.println("Total Weekly Pay is $"+_total);
> >    }
> > }
> >
>
> maybe one of these last lines needs to change a little bit?
> if you are really close to a deadline i can tell you the answer,
> but the problem basically is that this command line stuff is
> not portable across architectures. pay close attention to
> the different values returned by windows and unix pressing
> the enter key, and the answer will leap out and byte you.
> see your instructor and ask for only graphical assignments,
> then you should be ok. if your deadline fast approaches,
> i can tell you the answer in return for copious amounts of
> beer. ;-)
>
> hope this helps,
> kanpai!
> pat

 I never tried it but isn't there a property called line.separator  in
java.lang.System.getProperties() ??

BTW could I get a beer too ?

mfg ET

Reply via email to