Hello, I'm struggling with this java programming question
Create a class named Invoice that holds an invoice number, balance due and three fields representing the month, day, and year that the balance is due. Create a constructor that accepts values for all five data fields within the constructor, assign each argument to the appropriate field with the following exceptions:
-if an invoice number is less than 1000, force the invoice number to 0
-if the month field is less than 1 or grater than 12, force the month field to 0
-if the day field is less than 1 or greater than 31, force the day field to 0
-if the year field is les than 2011 or greater than 2017, force the year field to 0
In the invoice class, include a display method that displays all the fields on an Invoice object.
I'm completely lost on what to do next. Hope you guys can help, this is what I currently have
public class Invoice{
private String month,day,year;
private double BalanceDue;
private double InvoiceNumber;
public Invoice(String m, String d, String y, double balance, double number){
m=month;
d=day;
y=year;
balance=BalanceDue;
number=InvoiceNumber;}
}