日期:2014-05-20 浏览次数:20830 次
String a = "拐点3"; String b = a.substring(0,2); if(a.subSequence(0,2)=="拐点") { out.print(b); } else { out.print("出错:"+a.subSequence(0,2)); }
a.subSequence(0,2)=="拐点"