Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLease answer as soon as possible and answer as much as possible. JAVA! Fill in the gaps in the code below, to have a fuly
PLease answer as soon as possible and answer as much as possible. JAVA!
Fill in the gaps in the code below, to have a fuly working code 3 public class Garden i 4 int numberof Trees; 5 private double gardenArea; public static void main(String[] args) { = new Garden (4. 10.0); // change the number of Trees for myGarden object to 5 1/ print the value of gardenArea System.out.println(mygarden. .); 1/ change the value of gardenArea to 15.6 3 public Garden (int numberof Trees, double gardenArea) { 10 111 12 13 14 15 16 117 18 119 20 21 22 23 24 25 26 270 28 29 30 31 32 } 3 public double getGardenArea() { return gardenArea; ) public void setArea (double area) { if (area se numberof Trees 2.5) EardenArea = area; ) 7 A BT / U & X Linn 7 Line 10 Line 13 Line 16 Line 21 Line 22Step 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