Given task is to draw an Olympic symbol in Java Applet.
Use drawOval() method to draw a circle with x and y coordinates and length and breadth.
Below is the implementation of the above approach:
Note: To run the applet in command line use the following commands
> javac Olympics.java > appletviewer Olympics.html
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.