Posted by Kory Spansel on 2000-08-30
hmm..it's been a while since I've played with Java, but I think instead of
using the println method use the print method of System.out, this way a new
line character is not added to the end of the line. I think, but if I'm
wrong, Mr Johnston or Frank should know...
Kory
> for(int j = remainder.length -1; j >= 0; j--)
> {
> System.out.println(remainder[j]);
>
> }
>
> this statement tells it to print the content of the "remainder" array.
> However, it prints out each number in different row. For example, if the
> content of the array are 3, 5, 7, then the print out would be:
> 3
> 5
> 7
Previous post | Next post | Timeline | Home