/** 来自我的主类和方法 */
String ans = null;
System.out.println("Has your address changed?(y/n): " );
ans = input.next();
munozAccount.changeAddress(ans);
/** 来自 main 方法调用的会计类消息说需要:boolean found: java.lang.String */
public void changeAddress(String ans) {
if (ans = "y") {
cust.changeStreet();
cust.changeCity();
cust.changeState();
cust.changeZip();
} else {
System.out.print("understood");
}
}