I have a class with a constructor that accepts 5 args including 3 String data types. When I attempt to create a new object of that class and pass the constructor the String data types I receive the following error: "illegal start of type". I'm not sure what I am missing, any help would be appreciated.
Code:
Delivery(String yr, String mth, String delnum, int distcd, double wt)
{
year = yr;
month = mth;
distanceCode = distcd;
packageWeight = wt;
monthlyDelNum = delnum;
deliveryNumber = year + month + monthlyDelNum;
}
public class DeliveryExample
{
Delivery delivery("9", "07", "123", 1, 3.5);
}