Question: why my java eclipse out like this ,this program runnable on mac.. public class AreaRectangle { public static void main (String[] args) { double length

why my java eclipse out like this ,this program runnable on mac..why my java eclipse out like this ,this program runnable on mac..

public class AreaRectangle { public static void main (String[] args) { double length = 0: double width = 0: double area: length = Length (length): width = width(width): area = area (length, width): displayData (length, width, area): System, exit(0): } public static double length (double length){ Scanner keyboard = new Scanner(system.in): System.out.print ("Enter the your length: "): return length = keyboard.nextDouble(): } public static double width (double width){ Scanner keyboard = new Scanner(System.in): System.out.print ("Enter the your width: "): return width = keyboard.nextDouble();} public static double area (double length double width){ double area: area = length * width: System, out.println(area) return area: } public static double displayData (double length, double width, double area){ System out println("the data of this program includes length "+length+" width" +width +"Area" + area): return area: } }

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!