Question: please follow the steps number instructions and write the program in java thank you public class Month { private int nonthkumber: final string[] monthName={January, February,

 please follow the steps number instructions and write the program in
java thank you public class Month \{ private int nonthkumber: final string[]
monthName=\{"January", "February", "March", "April", "May", "June", "July", "August" "September", "October", "November", "December"
please follow the steps number instructions and write the program in java thank you

public class Month \{ private int nonthkumber: final string[] monthName=\{"January", "February", "March", "April", "May", "June", "July", "August" "September", "October", "November", "December" \}; //step1 create a constructor that accepts the number of the month as an argument. //step2 create a constructor that accepts the name of the month. It should set the monthoumber field to the correct corresponding value. //step3: create a seturathulumber, method, //step4icreate a getMonthuruber method I*: Qreturn A reference to a string representation of the object. / l8 step6: create a equals method eparam month2 Another month object. ereturn true if the two Month objects contain the same contblumber, false otherwise. step7: create a greaterThan method Eparam month2 Another Month object. ereturn true if the nonthnumber of the calling objects is greater than the monthulumber of the argument, false otherwise. Deno program for the Month Class Chapter 9, Programming Challenge 6 / import java, util 5 canner; public class MonthDemo1 \{ public static void main(string[] args) \{ Scanner kb= new Scanner(System.in); Sxsternout orintln("Please enter two numbers in between 112)i int x=kb, arextrnt () ; int y=kb arextInt(); //steps: create two Month objects based on the inputs x and y //step9: Call equal method to compare the two objects to see whether the contain the same month or not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!