Question: Please help with these two codings, i did not understand my teacher and i dont know if there are connected to each other or if



import java.util.Scanner; public class MonthDriver public static void main(String[] args) ); System.out.println(both class Devel ation Scanner input - new Scanner(System.in); Month nl - new Month(); for(int i = 2; 1 = 1 && this.monthNum this.monthNum - monthNum; - A constructor that accepts the name of the month, such as "January" or "February" as an argument. It should set the monthNumber field to the correct corresponding value. //constructor with args - sets monthName to corresponding monthNun public Month (String monthName) for (int i = 1; i 1.6 monthnum = 1 & this.monthNum 1 && monthNum monthl.monthNum) return isGreat; else return not Great; - A less Than method that accepts a Month object as an argument. If the calling object's monthNumber field is less than the argument's monthNumber field, this method should return true. Otherwise it should return false. //less than method public String less than (Month monthl) String isless - get MonthName() + " is less than " + monthi.get MonthName() + String notLess = getMonthName() + " is NOT less than " + monthi.getMonthName() + "."; if (monthNum
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
