Question: in java public class house private double prices private double area; // in meter square public void setHouse(doubles double a) prices areas public double getAreareturn
public class house private double prices private double area; // in meter square public void setHouse(doubles double a) prices areas public double getAreareturn (area):) public double getPrice { return (price) > a Considering the above class Write a static method named find that takes as a parameter an array of type house named list. The method should count and return the number of houses that have area greater than 250 meter Square. The method prototype is public static int find (house [] list): Note: assume the array is already dedared, populated with data in the main method and ready to be used Use the editor to format your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
