Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 they are separated, but everytime that I try to run MonthDriver it automatically opens Month and it says that it has 38 errors, which i dont see either, so neither of them run. Please help, thanks! 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
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 they are separated, but everytime that I try to run MonthDriver it automatically opens Month and it says that it has 38 errors, which i dont see either, so neither of them run. Please help, thanks!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started