java condition using strings not working
<p>This is a program when i type "kutty" it should say me "Hello kutty" but this code is not working.</p>

<pre><code>import java.util.*;
public class Kutty
{
    public static void main(String args[])
    {
        byte a[]={5,2,3};
        String c;
        Scanner scan=new Scanner(System.in);
        c=scan.next();
        if(c=="kutty")
        {
            System.out.println("Hello" +c);
        }
        else
        {
            System.out.println("Invalid");
        }
    }
}
</code></pre>
