java,String s="hello";和char[] c={'h','e','l','l','o'};的equals为什么为false?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 10:47:39
java,String s=

java,String s="hello";和char[] c={'h','e','l','l','o'};的equals为什么为false?
java,String s="hello";和char[] c={'h','e','l','l','o'};的equals为什么为false?

java,String s="hello";和char[] c={'h','e','l','l','o'};的equals为什么为false?
类型不同啊,一个是字符串,一个是字符数组