logical reasoning problem java

I have a fault in my logical process, ask that given 3 values ​​determine which is the greater number considering that the numbers can be repeated …
but at the time of executing it and giving 3 equal values ​​I get the message "The first and second number are greater".
I would like to know if you could help me … Thanks in advance

if ((num1> = num2) && (num1> = num3))
        {
            if (num1 == num2)
            {
                System.out.println ("The first and second number are bigger.");
            }
            else if (num1 == num3)
            {
                System.out.println ("The first and third number are bigger.");
            }
            else
            {
            System.out.println ("The first number is greater.");
            }
        }
        else if ((num2> = num1) && (num2> = num3))
        {
            if (num2 == num3)
            {
                System.out.println ("The second and third number are greater");
            }
            else
            {
            System.out.println ("The second number is greater.");
            }
        }
        else
        {
            System.out.println ("The third number is greater.");
        }

        }