Re: Problem with difference between Mac & Linux Java

1998-06-30 Thread Geoffrey S. Knauth
I think the problems you're having are with: System.in.skip(1);//remove nl The argument is a long, not an int, so 1L would probably be better. But the documentation for anInputStream.skip(long n) says: Skips over and discards n bytes of data from this input str

Re: Problem with difference between Mac & Linux Java

1998-06-30 Thread pat cavanagh
Eitzenberger Thomas wrote: > 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 l

Re: Problem with difference between Mac & Linux Java

1998-06-30 Thread Eitzenberger Thomas
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 rea

Re: Problem with difference between Mac & Linux Java

1998-06-30 Thread pat cavanagh
Glenn Valenta wrote: > I'm new to Java and have taken a course at CU Denver in Java > Programming. The course outline states (ironically) that you must > have W95 or a Mac to take the course. I have entered it using > Linux. All has been fine up till I turned in my first code. The > following c