how to create constructor for delivery service in java
Can anyone help me solve this homework

Create a Delivery class for a delivery service. The class contains the feilds to hold the following: 
A delivery number that contains eight digits. The first four digits represent the year, and the las four digits represent the delivery number. For example, the 76th delivery in 2011 has a complete delivery number of 20110076. 
A code represnting eh delivery area. A local delivery is code 1 and a long distance deliver is code 2.
A weight in pounds of the item to be delivered
Create a constructor for eh Delivery class that accepts arguments for the year, delivery number within the year, delivery distance code, and weight of the package. The constructor determins the eight-digit delivery number and delivery fee. Also include th method that displays evey Delivery object fields 
how to create constructor for delivery service in java
===

Can anyone help me solve this homework

Create a Delivery class for a delivery service. The class contains the feilds to hold the following: 
A delivery number that contains eight digits. The first four digits represent the year, and the las four digits represent the delivery number. For example, the 76th delivery in 2011 has a complete delivery number of 20110076. 
A code represnting eh delivery area. A local delivery is code 1 and a long distance deliver is code 2.
A weight in pounds of the item to be delivered
Create a constructor for eh Delivery class that accepts arguments for the year, delivery number within the year, delivery distance code, and weight of the package. The constructor determins the eight-digit delivery number and delivery fee. Also include th method that displays evey Delivery object fields 