控制台输入:asdf,为什么结果是false?求Scanner的具体解释
public class StringTest {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
String s1="asdf";
String s2=scan.next();
System.out.println(s1==s2);
}
}