读程序:public class TT{ public static void main(String[] args) { String s1="hello"; String s2=new String("hello"); if(s1.equals(s2)){ System.out.println("相等"); }else{ System.out.println("不相等"); } }}程序输出结果: 程序 不相等 发布时间:2024-05-19 10:48:24