今天,在牛客网上刷了一道简单的题,很惭愧做错了。题目如下:
public class Demo {
public static void main(String args[])
{
String str=new String("hello");
if(str=="hello")
{
System.out.println("true");
}<
今天,在牛客网上刷了一道简单的题,很惭愧做错了。题目如下:
public class Demo {
public static void main(String args[])
{
String str=new String("hello");
if(str=="hello")
{
System.out.println("true");
}<