Search:

Type: Posts; User: Kattracks32

Search: Search took 0.19 seconds.

  1. Replies
    1
    Views
    1,501

    For loop not giving the correct output

    I am attempting to get all the letters A-Z to print on the screen with 10 letters per line. I created a method <private static char printChars(char ch1, char ch2, int numberPerLine> to do this and...
  2. Replies
    7
    Views
    1,366

    Re: while loop is not working right

    okay, I think that I understand what your saying, and I apologize for the formatting. It looks a whole lot different in eclipse then when it is posted here. I will try to get it better the next time...
  3. Replies
    7
    Views
    2,173

    Re: "%10.2f" Formatting

    Worked Great!
    Thanks
  4. Replies
    7
    Views
    1,366

    Re: while loop is not working right

    if (applicantsHeight >= HEIGHT && applicantsWeight <= WEIGHT) {
    String photographer1String = JOptionPane.showInputDialog("Enter 1st Photographers Score");
    double...
  5. Replies
    7
    Views
    1,366

    while loop is not working right

    I am trying to run this code for class and I cant get the while loop to work properly.

    import javax.swing.JOptionPane;
    public class Modeling_001C_5WhileLoops {
    public static void...
  6. Replies
    7
    Views
    2,173

    Re: "%10.2f" Formatting

    // Define average and assign a value
    double averageScore = (photographer1 + photographer2 + photographer3) / 3;
    String.format("%10.2f", 12.22); // I added it here, but it made...
  7. Replies
    7
    Views
    2,173

    Re: "%10.2f" Formatting

    okay...I have no idea how to do that, or where to put it.
    :-?
  8. Replies
    7
    Views
    2,173

    "%10.2f" Formatting

    I am trying to run a program for my class where I have to have the average computed and the teacher wants to see 2 numbers past the decimal point. I know what I need to add, however I have no idea...
Results 1 to 8 of 8