Search:

Type: Posts; User: Bill_H

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    2,825

    Re: If Statement Java Need help

    You're welcome!

    As for part 4, I'm not entirely certain how your program works since I'm not the one making it, and just reading it doesn't always immediately click into place, but I'm guessing...
  2. Replies
    5
    Views
    2,825

    Re: If Statement Java Need help

    Ok, right here I notice that you have the program return a king at value 13, but at 13 or greater it returns not a card. Shouldn't this be greater than 13 like:


    else if(faceValue==13) {
    ...
  3. Replies
    5
    Views
    2,825

    Re: If Statement Java Need help

    You have a "{" which never closes on the first if statement on line 27.


    27. if(faceValue == 1) {
    28. return "Ace";
    29. }
    30. else if(faceValue==2) {
    31. return "Two"; ...
Results 1 to 3 of 3