日期:2014-05-20 浏览次数:20676 次
public class Test { public static void main(String[] args) { String greeting = "abcd"; boolean x = greeting.endWith("cd"); System.out.println(x); } }