Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
My task is to write a program that calculates the area of the following figures:
- a square with sides of 0.666666667 meters
- a rectangle of sides 1/9 and 4 meters
This may seem simple, but I'm a Java newbie. Please help!
- public class IfTest1
- public static void main(String args)
- // your code goes here