java: if...else statement might be incorrect in my code
<p>As an output, "Player card" should be outputted with randomly selected suit and value, however it's not with my code. </p>

<p>Is there something missing or I have my if...else statements messed up? I know I can use do...while, but I want to be able to do it with if...else statements.</p>

<pre><code>public static void main(String[] args){

    //A new object, player card for the card suit.
    Card player = new Card();

    //Setting the suit for player card to be displayed randomly
    player.setSuit((int) (Math.random()*4));

    //Setting the value for player card to be displayed randomly 
    player.setValue(1 + (int)(Math.random()*12));

    //A new object, computer card for the card suit
    Card comp = new Card();

    //Setting the suit for computer card to be displayed randomly
    comp.setSuit((int) (Math.random()*4));

    //Setting the value for computer card to be displayed randomly
    comp.setValue(1 + (int)(Math.random()*12));


    if((comp.getValue()== player.getValue()) &amp;&amp; (comp.getSuit() == player.getSuit()))
        System.out.println("Player Card: " + player.getValueString() + " of " + player.getSuitString());
        System.out.println("Computer Card: " + comp.getValueString() + " of " + comp.getSuitString());
        if(player.getValue() &gt; comp.getValue())
            System.out.println("Player won!");
        else if(player.getValue() &lt; comp.getValue())
            System.out.println("Computer won!");
        else
            System.out.println("Tie!");
</code></pre>
