Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    13
    Views
    1,274

    Re: Help with if, else if and else statements

    Are you working with code that is the same as in post#1?
  2. Replies
    13
    Views
    1,274

    Re: Help with if, else if and else statements

    I doubt my changes would effect the execution of the if/else if statements you are concerned about.

    One problem with your original program is getting the dice to be 6 6 6 1. How many times do you...
  3. Replies
    13
    Views
    1,274

    Re: Help with if, else if and else statements

    I do not use an IDE. I use command prompt with javac.exe and java.exe.

    I didn't run the program as you wrote it. I changed these lines so I did not have to respond to the prompts and so the dx...
  4. Replies
    13
    Views
    1,274

    Re: Help with if, else if and else statements

    Here is what I get when I run the code:
  5. Replies
    13
    Views
    1,274

    Re: Help with if, else if and else statements

    That looks a lot better.

    Can you copy the FULL contents of the console from running the program that shows the problem and paste it here? Add some comments where there is a problem
  6. Replies
    13
    Views
    1,274

    Re: Help with if, else if and else statements

    The code tags I fixed have been lost.
    The code's indentations are not correct. The do{}while within another do{}while should be indented.


    do //beginning of do loop
    {...
  7. Replies
    13
    Views
    1,274

    Re: Help with if, else if and else statements

    The indentations of the code makes the logic hard to follow. The nested do{} while statements need to be indented.
    Please fix the indentations to show the logic.

    Can you copy the contents of the...
Results 1 to 7 of 7