Create a Circle class and add a static attribute r (member variable) to define a constant PI=3. 142. Add two methods to the class loop.
You didn't output the results. For example, if you want to output the perimeter, the system. out . println(new 1 . getlength()); That's right. You returned a Double variable and automatically rewritten the toString method of the double variable when printing.