Java String的endsWith方法
class Main{ public static void main(String[] args) { System.out.println("nmsl".endsWith("n")); System.out.println("baidu".endsWith("du")); String s = "12345"; System.out