Search:

Type: Posts; User: helloworld922

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    2,357

    Re: A little help with my Blackjack code

    if (tal1 > 21 && tal2 > 21)
    {
    System.out.println("You both busted!");
    }
    else if (tal1 > 21)
    {
    System.out.println("Tal1 busted, Tal2 wins!");
    }
    else if (tal2 > 21)
    {
  2. Replies
    4
    Views
    2,357

    Re: A little help with my Blackjack code

    Add an if statement inside the third block to check if tal1 is bigger or if tal2 is bigger. Also, it's unnecessary to have blocks 1 and 2, simply change block three's if statement to include 21....
Results 1 to 2 of 2