Well it's quite simple. Here's the declaration of setShippingDest
:
public void setShippingDest(String inCustName, String inDestn)
And here's how you're trying to call it:
shipOrder.setShippingDest("Broome");
You've provided one argument, but there are two parameters? How do you expect that to work? You either need to provide another argument, or remove one parameter.
(I'd also strongly advise that you remove the in
prefix from all of your parameters, and look into a real unit testing framework such as JUnit, rather than writing an enormous main
method.)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…