I'm new to this site :)
Anyway, I decided to learn java a couple of days ago and I have a small problem which I don't know how to fix. This is my code: When name = Jim I want it to output "Hello Jim", when it doesnt = Jim then output "Youre not Jim, youre " + name
import java.util.*;
public class app {
    public static void main(String[] args) {
        String name;
        Scanner inputName = new Scanner(System.in);
        System.out.println("Enter a name: ");
        name = inputName.nextLine();
        if (name == "Jim") {
            System.out.println("Hello " + name);
        } else {
            System.out.println("Youre not Jim! You are " + name);
        }
    }
}
 
     
    