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.


Members have full access to the forums. Advertisements are removed for registered users.

11 Visitor Messages

  1. View Conversation
    Alright just got off work. Now if u still need the 2nd part of the homework about showing each name in one list.

    Here is the part in the first one where u have a format.
    message = String.format("%s $%.02f,name,total);

    In the 2nd part all you do is add a + sign in front of the equal sign. And \n which is adding a new line for each name.
    message += String.format("%s $%.02f\n,name,total);

    Now the take the JOptionPane.showMessageDialog(null,message);, and move it outside the while loop. And thats the 2nd one.

    If u rather have me email u on your gmail account instead of this site, I can as well.
Showing Visitor Messages 11 to 11 of 11
Page 2 of 2 FirstFirst 12
Page 2 of 2 FirstFirst 12
About cb5950

Basic Information


Total Posts
Total Posts
Posts Per Day
Visitor Messages
Total Messages
Most Recent Message
February 9th, 2011 11:35 PM
Total Thanks
Total Thanks
  • Thanked 0 Times in 0 Posts
General Information
Last Activity
May 5th, 2011 01:26 AM
Join Date
February 9th, 2011

2 Friends

  1. anthony23415 anthony23415 is offline

    Junior Member

  2. JavaPF JavaPF is offline

    mmm.. coffee

Showing Friends 1 to 2 of 2