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)
{
Type: Posts; User: helloworld922
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)
{
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....