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");}}}
- 2 回答
- 0 关注
- 119 浏览
添加回答
举报
0/150
提交
取消