If / else not working with String (JAVA) [migrated]

I´m trying to make a simple code in JAVA.

On this code, the if user input “Carol”, program should write OK. If user input anything different than “Carol”, program should write NOK.

But, program is always writing NOK …

Can you help ?

See program code below:

Tks.

import java.io.*;

public class teste

{

public static void main(String[] args) throws IOException

{

BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));

System.out.print(“Enter string: “);

String s = stdin.readLine();

System.out.println(s);

if (s == “Carol”)

System.out.println(“OK”);

else

System.out.println(“NOK”);

}

}