That code is well‑nigh illegible because it has not been spaced or indented properly. Please use the
button to go back and sort out the code.
You have the wrong arguments for the Ellipse2D constructor. Please look them up.
Delete that empty constructor, unless you particularly want a 0.0×0.0 ellipse.
You cannot call paint unless you have a Graphics object available, which mean on a display/GUI. That method call will never compile in a main method.
Your other method calls will work, but you are not using their return values. Maybe
you should print them:-
System.out.println(myEllipse.getArea());
Your class names are incorrect; they should be Oval, Shape2D. Only ever use _ in constant names. Don’t write your own PI; use Math.PI.
Never use pow(x, 2). Use
x * x.