The newline character output by the println() method will make the next printed String go on the next line. Use the print() method to have the next print out go on the same line.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
The newline character output by the println() method will make the next printed String go on the next line. Use the print() method to have the next print out go on the same line.
If you don't understand my answer, don't ignore it, ask a question.
Yes I am familiar with \n however that is not what I was suggesting. I think because my output is in a loop it prints everything rather then just one statement and then the multiple outputs im looking for. It keeps printing the same statement and then the output. I will post my output here in a second, maybe that will help what im trying to explain.
Please copy the output and paste it here. Also post what you want it to look like.
Look at the pseudo code in post#18 where I suggested that the reports be printed AFTER the loop had exited.It keeps printing the same statement
If the println()s are inside the loop, they will print something every time the loop goes around.
If you don't understand my answer, don't ignore it, ask a question.