public String SeekForId() {
// TODO Auto-generated method stub
System.out.println("查询:请输入代号:");
String goid = input.next();
Goods goods = this.getA(goid);
if (goods == null)
System.out.println("该产品不存在");
else
goods.printA();
return goid;
// TODO Auto-generated method stub
System.out.println("查询:请输入代号:");
String goid = input.next();
Goods goods = this.getA(goid);
if (goods == null)
System.out.println("该产品不存在");
else
goods.printA();
return goid;