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
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
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
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