java库函数—字符串A以字符串B开头或者以字符串C结尾 public boolean check(String A,String B, String C){if(A.startsWith(B)pwd.endsWith(C))return true;elsereturn false;}
public boolean check(String A,String B, String C){ if(A.startsWith(B)&&pwd.endsWith(C)) return true; else return false; }