public class ToStringTest {
public static void main(String[] args)
{
StringBuffer sb = new StringBuffer("asdf");
String str = "asdf";
if(sb.toString() == str)
{
System.out.println("yes");
}
else
{
System.out.println("no");
}
}
}
繁华开满天机
一只萌萌小番薯
相关分类